Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

ms sql truncate table vs delete

-- Quick, no possible rollback
TRUNCATE TABLE my_table;
-- With possible rollback
DELETE FROM my_table;
COMMIT;  -- or ROLLBACK;
 
PREVIOUS NEXT
Tagged: #ms #sql #truncate #table #delete
ADD COMMENT
Topic
Name
9+6 =