Truncate Data
Function
Truncate data from a managed table or an OBS table.
Syntax
TRUNCATE TABLE tablename [PARTITION (partcol1=val1, partcol2=val2 ...)];
Keywords
| Parameter | Description |
|---|---|
| tablename | The name of the managed table or OBS table on which the TRUNCATE command is to be executed. |
| partcol1 | The name of the partition in the managed table or OBS table to be truncated. |
Precautions
Only supports clearing data from managed tables or OBS tables.
Examples
TRUNCATE TABLE test PARTITION (class = 'test');
What is your overall rating for this page?
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot