I have a table say, ITEM, in MySQL that stores data as follows:
ID FEATURES -------------------- 1 AB,CD,EF,XY 2 PQ,AC,A3,B3 3 AB,CDE 4 AB
Alternatively, consider using RLIKE()
select * from ITEM where ','+FEATURES+',' RLIKE ',AB,|,PQ,';