Closed MadHundred closed 2 years ago
How to use FIND_IN_SET in WHERE method? I tried different ways and this below method but doesn't work :
FIND_IN_SET
$query->where('ColumnName', $inputId, 'FIND_IN_SET');
I found the way of using FIND_IN_SET in WHERE , it must used as raw like below
$query->where("FIND_IN_SET ('" . $inputId . "' ,`columnName`)");
How to use
FIND_IN_SET
in WHERE method? I tried different ways and this below method but doesn't work :