Updated on 2026-11-06 GMT+08:00
TRUNCATE
Function
TRUNCATE is specific to Aura. It is used to clear table data.
Precautions
External tables do not support TRUNCATE.
Iceberg tables do not support the TRUNCATE PARTITION syntax.
Syntax
1 | TRUNCATE TABLE table_name [ PARTITIONS (col_name = col_value [, col_name = col_value ]) [, ... ] ]; |
Parameter Description
- table_name
Name of the target table whose data is to be cleared.
Examples
Delete the data of the table partition whose ID is 2.
1 | TRUNCATE TABLE table_name PARTITIONS (id = 2); |
Parent topic: DDL Syntax
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot