Files
doris/docs/en/sql-manual/sql-reference/Data-Definition-Statements/Drop/DROP-TABLE.md
Mingyu Chen 74a482ca7f [fix] fix docs build bug (#9293)
After this PR #9272, the `docs/build_help_zip.sh` will run failed.
This PR fix this issue.
But the help module still has some parse problem, I will fix it in next PR.

This CL mainly changes:
1. fix `docs/build_help_zip.sh` error
2. remove `sql-reference-v2` to `sql-reference`
3. modify build extension github action to run `docs/build_help_zip.sh`
2022-04-28 22:19:04 +08:00

1.7 KiB

title, language
title language
DROP-TABLE en

DROP-TABLE

Name

DROP TABLE

Description

This statement is used to drop a table. grammar:

DROP TABLE [IF EXISTS] [db_name.]table_name [FORCE];

illustrate:

  • After executing DROP TABLE for a period of time, the dropped table can be recovered through the RECOVER statement. See RECOVER statement for details
  • If you execute DROP TABLE FORCE, the system will not check whether there are unfinished transactions in the table, the table will be deleted directly and cannot be recovered, this operation is generally not recommended

Example

  1. Delete a table

    DROP TABLE my_table;
    
  2. If it exists, delete the table of the specified database

    DROP TABLE IF EXISTS example_db.my_table;
    

Keywords

 DROP, TABLE

Best Practice