一个字段做模糊查询
SELECT * FROM `content` WHERE `title` LIKE '%关键字%'
查询多个字段
SELECT * FROM `content` WHERE ( `title` LIKE '%关键字1%' AND `title2` LIKE '%关键字2%' )
查询标题包含 “关键字1” 或 “关键字2”
SELECT * FROM `content` WHERE (`title` LIKE '%关键字1%' OR `title` LIKE '%关键字2%')
查询标题中同时包含 “关键字1” 和 “关键字2”
SELECT * FROM `tp_keywords_sanqi` WHERE ( `title` LIKE '%关键字1%' AND `title` LIKE '%关键字2%' )