generating an empty table from a table in sql code example
Example: sql empty table
-- Quick, no possible rollback
TRUNCATE TABLE my_table;
-- With possible rollback
DELETE FROM my_table;
COMMIT; -- or ROLLBACK;
-- Quick, no possible rollback
TRUNCATE TABLE my_table;
-- With possible rollback
DELETE FROM my_table;
COMMIT; -- or ROLLBACK;