ClickHouse/docs/en/sql-reference/statements/truncate.md
2020-07-11 14:05:49 +03:00

538 B

toc_priority
53

TRUNCATE Statement

TRUNCATE TABLE [IF EXISTS] [db.]name [ON CLUSTER cluster]

Removes all data from a table. When the clause IF EXISTS is omitted, the query returns an error if the table does not exist.

The TRUNCATE query is not supported for View, File, URL and Null table engines.