文/夏翔
开发人员的噩梦——删除重复记录CREATE TABLE Products ( ProductID int, ProductName nvarchar (40), Unit char(2), UnitPrice money ) |
![]() 图表 |
CREATE TABLE Products_temp ( ProductID int, ProductName nvarchar (40), Unit char(2), UnitPrice money ) |
![]() 图2 |
insert into Products_temp Select * from Products |
delete Products insert into Products select * from Products_temp drop table Products_temp |
新闻热点
疑难解答