`

查询重复记录

 
阅读更多
删除重复记录
  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
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics