--添加輔助處理字段
alter table 表 add tmp_abc_123 int identity
go
--借助輔助字段刪除某列重復的記錄
delete a from 表 a where exists(select * from 表 where 某列=a.某列 and tmp_abc_123<a.tmp_abc_123)
go
--刪除輔助字段
alter table 表 drop column tmp_abc_123 
| 刪除相同記錄在一個表中。SQL語句時間:2011-5-30來源:yang 作者: peng點擊: 33次 --添加輔助處理字段 | 
|  | 
來自: 獨孤求財 > 《數(shù)據(jù)庫》