-
Notifications
You must be signed in to change notification settings - Fork 403
DROP TABLE
Daniël van Eeden edited this page Mar 13, 2024
·
6 revisions
SQL standard specifies the following DROP TABLE syntax:
DROP TABLE table_name {CASCADE | RESTRICT}
Dialects have considerable variation:
DROP [EXTERNAL | SNAPSHOT] TABLE [IF EXISTS] table_name
DB2:
DROP TABLE [HIERARCHY] table_name
Hive:
DROP TABLE [IF EXISTS] table_name [PURGE]
DROP [TEMPORARY] TABLE [IF EXISTS] table_name ["," ...]
[WAIT n | NOWAIT]
[RESTRICT | CASCADE]
DROP [TEMPORARY] TABLE [IF EXISTS] table_name ["," ...]
[RESTRICT | CASCADE]
N1QL:
No support for DROP TABLE.
DROP TABLE table_name [CASCADE CONSTRAINTS] [PURGE]
DROP TABLE [IF EXISTS] table_name ["," ...] [CASCADE | RESTRICT]
DROP TABLE [IF EXISTS] table_name ["," ...] [CASCADE | RESTRICT]
DROP [TEMPORARY] TABLE [IF EXISTS] table_name [FORCE]
DROP TABLE [IF EXISTS] table_name [CASCADE | RESTRICT]
DROP TABLE [IF EXISTS] table_name
DROP TABLE [IF EXISTS] table_name
TiDB:
DROP [TEMPORARY] TABLE [IF EXISTS] table_name ["," ...]
[RESTRICT | CASCADE]
DROP TABLE [IF EXISTS] table_name ["," ...]
DROP TABLE [IF EXISTS] table_name