|
Posted by ZeldorBlat on 10/10/46 11:31
If you just want to delete *every* row in the table you can use
TRUNCATE TABLE :
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_ta-tz_2hk5.asp>
If you want to selectively delete rows, that won't work, though. If
you want to delete most of the rows (but not all of them) you could
insert the ones you want to keep into some other (temporary) table,
truncate the main table, then insert the rows back.
Navigation:
[Reply to this message]
|