1.select distinct index,name,title from table 得出table22.然后在程序中对得出的这个表table2每行进行循环 用字符串a,b,c 代表每行的三个字段:select max(date) from table where index='a' and name='b' and title='c ' 得出新表3 ,表中有唯一的最大日期记为d,是多有index='a' and name='b' and title='c ' 的最大日期3.然后删除 delete from table where index='a' and name='b' and title='c ' and date<>'d' 就OK了4.然后循环下一行
delete from 表 where id not in (select max(id) from 表 group by index,name,title)前提:对于重复的记录中,你的id号越大,date也越大
select DISTINCT * from table