ITeye博客

查询重复记录

bbsanwei · 2016-09-08 17:03 · 数据库 · Markdown

删除重复记录


  delete from t_assets_collect where aai_id in(
		select aai_id from (select row_number() over(partition by aai_tag_number order by t.last_update_time  desc) row_renum,t.* from t_assets_collect t)  where row_renum>1)

http://www.cnblogs.com/252e/archive/2012/09/13/2682817.html

http://soft.chinabyte.com/database/308/12346308.shtml

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。