删除表中重复数据,只留一条不重复数据

delete from test where rowid not in (select max(rowid) from test group by id)

猜你喜欢

转载自jiumoji.iteye.com/blog/1672320