就是一个information 的表格有些信息包括: 编号ID,标题title,出版时间updatetime,作者author--查标题 select * from information where title like '%关键字%'--查作者 select * from information where author like '%关键字%'--一起查询 select * from information where author like '%关键字%' or title like '%关键字%'
编号ID,标题title,出版时间updatetime,作者author--查标题
select * from information where title like '%关键字%'--查作者
select * from information where author like '%关键字%'--一起查询
select * from information where author like '%关键字%' or title like '%关键字%'