經安全檢測,此網站為安全網站,請放心前往原始網址!

Delete duplicate rows with no primary key on a SQL Server table

So to delete the duplicate record with SQL Server 2000 and 2005 we can use the SET ROWCOUNT command to limit the number of rows affected by a query. By setting it to 1 we can just delete one of these rows in the table. Note: the select commands are just .

www.mssqltips.com

網址安全性掃描由 google 提供