Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-10-31 : 07:50:12
|
| manikandan writes "Related to duplicate rows in tableIs there any substitute in sql server for rowid in oracle.“I have a table with out any primary key.And have a two identical rows.I have to delete one row.How can I do this in sql server2000Hope some one will help me.Thanx and regardsmanikandan" |
|
|
dsdeming
479 Posts |
Posted - 2003-10-31 : 08:10:35
|
| There is no SQL Server equivalent to rowid. Your best bet might to SELECT DISTINCT * INTO temptable FROM sourcetable WHERE whatever filters down to just the 2 rows in questionDELETE FROM sourcetable WHERE whatever filters down to just the 2 rows in questionINSERT INTO sourcetableSELECT * FROM temptabeDennis |
 |
|
|
|
|
|