TABLE_A
column name: list_id record 1: 1,2,5,6,8 record 2: 1,3,2 record 3: 6,7,2 record 4: 9,8,0
TABLE_B
id ='2';
How to select records having id='2' in a comma separated line? In the above example, it should return records 1,2 and 3.
Request (how to change this request, please?):
SELECT * FROM Table_a,Table_b WHERE Table_b.id = Table_a.list_id;
php mysql
112233
source share