Delete Dynamic Table
Description
This command is used to delete an existing dynamic table. A dynamic table is a special table structure that can dynamically adjust the number and type of columns based on actual data. When you no longer need a dynamic table, you can use this command to remove it from the database.
Syntax
IF EXISTS
: Optional parameter used to avoid errors caused by the table not existing when deleting a dynamic table. IfIF EXISTS
is specified, the system will not report an error when attempting to delete a non-existent dynamic table.
Usage Example
- Delete the dynamic table named
change_table_dy
:
- Delete the dynamic table named
sales_dy
without reporting an error if the table does not exist: {#delete-dynamic-table}
Precautions
- Before performing the delete dynamic table operation, please ensure that you have backed up the data in the table to prevent data loss.
- The delete dynamic table operation is irreversible. Once executed, the table and its data will be permanently lost.
- When deleting a dynamic table, please ensure that no other users or processes are accessing the table. If necessary, you can pause the relevant operations before performing the delete operation.
Related Commands
- CREATE DYNAMIC TABLE: Create a dynamic table.
- ALTER DYNAMIC TABLE: Modify the structure of a dynamic table.