After this PR #9272, the `docs/build_help_zip.sh` will run failed. This PR fix this issue. But the help module still has some parse problem, I will fix it in next PR. This CL mainly changes: 1. fix `docs/build_help_zip.sh` error 2. remove `sql-reference-v2` to `sql-reference` 3. modify build extension github action to run `docs/build_help_zip.sh`
1.8 KiB
1.8 KiB
title, language
| title | language |
|---|---|
| TRUNCATE-TABLE | en |
TRUNCATE-TABLE
Name
TRUNCATE TABLE
Description
This statement is used to clear the data of the specified table and partition grammar:
TRUNCATE TABLE [db.]tbl[ PARTITION(p1, p2, ...)];
illustrate:
- The statement clears the data, but leaves the table or partition.
- Unlike DELETE, this statement can only clear the specified table or partition as a whole, and cannot add filter conditions.
- Unlike DELETE, using this method to clear data will not affect query performance.
- The data deleted by this operation cannot be recovered.
- When using this command, the table status needs to be NORMAL, that is, operations such as SCHEMA CHANGE are not allowed.
Example
-
Clear the table tbl under example_db
TRUNCATE TABLE example_db.tbl; -
Empty p1 and p2 partitions of table tbl
TRUNCATE TABLE tbl PARTITION(p1, p2);
Keywords
TRUNCATE, TABLE