SQL删除重复数据

name.age.是重复的,sql:

 

Delete from TB where id not in ( 
select max(t1.id) from TB t1 group by t1.id, 
t1.name,t1.age)

 

 

posted @ 2010-03-03 13:37  Zoya Qiu  阅读(197)  评论(0编辑  收藏  举报