Help Center/
GaussDB(DWS)/
Tool Guide/
DSC/
SQL Syntax Migration Reference/
MySQL Syntax Migrating/
Schema Objects and Data Definition Language (DDL)/
Table (Optional Parameters and Operations)/
TRUNCATE (Table Deletion)
Updated on 2024-07-19 GMT+08:00
TRUNCATE (Table Deletion)
In MySQL, the TABLE keyword can be omitted when the TRUNCATE statement is used to delete table data. GaussDB(DWS) does not support this usage. In addition, DSC will add CONTINUE IDENTITY RESTRICT during TRUNCATE migration.
Input
1 2 |
TRUNCATE TABLE `public`.`test_create_table01`; TRUNCATE TEST_CREATE_TABLE01; |
Output
1 2 |
TRUNCATE TABLE "public"."test_create_table01" CONTINUE IDENTITY RESTRICT; TRUNCATE TABLE "public"."test_create_table01" CONTINUE IDENTITY RESTRICT; |
Parent topic: Table (Optional Parameters and Operations)
Feedback
Was this page helpful?
Provide feedbackThank 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