摘要:
Person表原始数据如下图:IDNameSexCreatedOn1黄明男2011-12-262黄明男2011-12-263马圈女2011-12-284马圈女2011-12-28欲得到的结果是:IDNameSexCreatedOn1黄明男2011-12-263马圈女2011-12-28删除语句如下:with Source as (select ROW_NUMBER() OVER(PARTITION BY Name,Sex,CreatedOn ORDER BY ID) RowNumber,*from Person )delete from Person where ID in (select I 阅读全文
posted @ 2011-12-26 11:40
Robin Yang
阅读(335)
评论(0)
推荐(0)
浙公网安备 33010602011771号