日期:2014-05-16 浏览次数:20939 次
delete a from yourTable a,yourTable b where a.id=b.id and a.a>b.a;
------解决方案--------------------
这种情况,两条记录所有字段相同,没有办法进行删除!
只能
select distinct * from yourTable
得到一个不重复的。然后清空原表。
可以
create table tttt as select distinct * from yourTable ;
delete from yourTable ;
insert into yourTable select * from ttt;
当您的问题得到解答后请及时结贴.
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html