文/夏翔
開發人員的噩夢——刪除重復記錄| 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 |
新聞熱點
疑難解答