【发布时间】:2011-05-09 12:03:22
【问题描述】:
我有这个 MySQL 查询。
我有包含这些内容的数据库字段
sports,shopping,pool,pc,games
shopping,pool,pc,games
sports,pub,swimming, pool, pc, games
为什么这样的查询不起作用? 我需要运动或酒吧或两者兼有的领域?
SELECT * FROM table WHERE interests LIKE ('%sports%', '%pub%')
【问题讨论】: