/
TRUNCATE TABLE
TRUNCATE TABLE
Truncates a table (deletes all rows from a table).
Syntax
TRUNCATE TABLE [schema_name.]table_name;
Description
Internally, the command duplicates the table definition and marks the old copy for deletion. The old copy is physically deleted later by the background maintenance service. New queries will see the new (empty) copy, but in-flight queries will finish executing successfully on the old copy, as if they finished execution right before the table was truncated.
See Also
, multiple selections available,
Related content
TRUNCATE TABLE
TRUNCATE TABLE
More like this
DROP TABLE
DROP TABLE
More like this
DROP TABLE
DROP TABLE
More like this
DROP RANGE INDEX
DROP RANGE INDEX
More like this
DROP SCHEMA
DROP SCHEMA
More like this
DROP VIEW
DROP VIEW
More like this