--添加輔助處理字段
alter table 表 add tmp_abc_123 int identity
go
--借助輔助字段刪除某列重復(fù)的記錄
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
刪除相同記錄在一個(gè)表中。SQL語句時(shí)間:2011-5-30來源:yang 作者: peng點(diǎn)擊: 33次
--添加輔助處理字段 |
|