SELECT DISTINCT * FROM [TableName]
通常我會很搞剛的先放到另一個 Table 去,然後清空資料再到回來SELECT DISTINCT * INTO [Temp_TableName] FROM [TableName]
DELETE FROM [TableName]
INSERT INTO [TableName] SELECT * FROM [Temp_TableName]
DROP TABLE [Temp_TableName]
就這樣完成!!
SELECT DISTINCT * FROM [TableName]
通常我會很搞剛的先放到另一個 Table 去,然後清空資料再到回來SELECT DISTINCT * INTO [Temp_TableName] FROM [TableName]
DELETE FROM [TableName]
INSERT INTO [TableName] SELECT * FROM [Temp_TableName]
DROP TABLE [Temp_TableName]