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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -