我有一个包含逗号分隔值的MySQL表,如下所示:
first row=(3,56,78,12) second row=(6,44,2,3) third row=(67,4,2,7,1) fourth row=(88,55,22,33) fifth row=(88,55,3,1,5)
我要选择3其集合中的行。我怎样才能做到这一点?
3
怎么样
SELECT * FROM Table WHERE Field LIKE '3,%' OR Field LIKE '%,3' OR Field LIKE '%,3,%' OR Field = '3'