小说网站 搜小说 无限网 烟雨红尘 小说爱好者 免费小说 免费小说网站

删除表中重复行SQL

delete from table_name a where rowid <
(select max(rowid) from table_name b
where a.col1 = b.col1
and a.col2 = b.col2 -- 遍历所以数据,以确定重复纪录
)

posted on 2013-12-21 00:12  王小航  阅读(177)  评论(0编辑  收藏  举报

导航