UNDROP TABLE
Use the UNDROP TABLE statement to restore deleted tables, dynamic tables, and materialized views. Therefore, this article uses UNDROP TABLE to restore deleted materialized views. Whether the deleted object can be restored depends on the data retention period. Data Retention Period: The ability to restore historical objects depends on the data retention period. The current preview version has a default data retention period of 7 days, which will be adjusted to 1 day in the future. You can adjust the retention period by executing the ALTER command. Please note that modifying the retention period may increase storage costs. Supported objects include tables (TABLE), dynamic tables (DYNAMIC TABLE), and materialized views.
Syntax
Parameter Description
- tablename: Specifies the name of the table to be deleted. Supports dynamic tables, internal tables, materialized views.
Example
Restore Materialized View
Precautions
- Please ensure that the recovery operation is performed within the data retention period, otherwise the deleted table cannot be restored.
- Before restoring the table, make sure that there are no tables with the same name. If there are tables with the same name, please rename or delete the tables with the same name.