查询重复记录

删除重复记录
  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

猜你喜欢

转载自bbsanwei.iteye.com/blog/2323387