mysql - How to find id which is string with semicolon -
i want find assigned jury id table.problem id joint semicolon here records.
id jury_id 1 2;4;6
i want find jury_id=4. how can find record ?
appreciated.
use find_in_set()
:
where find_in_set(?, replace(jury_id, ';', ',')) > 0
replace ?
target value.
note use function search string must csv, must replace semicolons commas.
Comments
Post a Comment