sql 删除两条完全相同的记录

delete a from ( select *,ps=row_number()over(PARTITION by cCaption  order by getdate())
from AA_ColumnDic where ckey='r003')a  where a.ps=2
posted on 2016-01-11 17:19  苏上话  阅读(312)  评论(0编辑  收藏  举报