If I have such as table below
|---col_1---|---col_2-----|
|---19------| "A; E; C; H"|
|---23------| "B; E; C" |
|---24------| "O; D" |
where col_2
is GROUP_CONCATed (by semicolon) column and I'm passing "E; A; C"
, I want to SELECT 19, 23
because at least 1 word (separated with semicolon) matches.
Can not figure out how to do it as MySQL query?
P.S.: This will be used in SphinxQL (Sphinx search engine Query Lang), which is similar to MySQL.