Това е адски просто за MySQL:
SELECT * FROM table WHERE FIND_IN_SET(table.id, commaSeparatedData);
Справка:http://dev .mysql.com/doc/refman/5.0/en/string-functions.html#function_find-in-set
Това е адски просто за MySQL:
SELECT * FROM table WHERE FIND_IN_SET(table.id, commaSeparatedData);
Справка:http://dev .mysql.com/doc/refman/5.0/en/string-functions.html#function_find-in-set