经典方法是在左右添加逗号:
select * from shirts where CONCAt(',', colors, ',') like '%,1,%'但是find_in_set也可以:
select * from shirts where find_in_set('1',colors) <> 0
经典方法是在左右添加逗号:
select * from shirts where CONCAt(',', colors, ',') like '%,1,%'但是find_in_set也可以:
select * from shirts where find_in_set('1',colors) <> 0