📜  ms sql truncate table vs delete - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:53.295000             🧑  作者: Mango

代码示例1
-- Quick, no possible rollback
TRUNCATE TABLE my_table;
-- With possible rollback
DELETE FROM my_table;
COMMIT;  -- or ROLLBACK;