I have a db design as
table1
id int(10);
name varchar(25);
cat_id_list varchar(255);
table2
cat_id int(10);
category varchar(50);
tab 1 - cat_id_list contains list of cat_id from tab2 I have selected some records on a particular basis from tab1. I have a specific set of cat_id 's to ignore. Now I want to delete those rec having that particular cat_id in the cat_id_list column. Can anyone help
table 1
id name cat_id_list
1 abc 1,2,
2 ab 3,
3 xyz 2,3,
table 2
cat_id category
1 name1
2 name2
3 name3
I want to ignore those records from table 1 which contains '1' value in the cat_id_list.