SQL同样的记录只显示一条
select Title from Products group by Title having count(*)=1 or count(*)>1select DISTINCT Title from Products最佳方法:select id,Title,smallpic from Products where id in (select max(id) from Products group by Title)