-
Notifications
You must be signed in to change notification settings - Fork 405
CREATE TABLE
Rene Saarsoo edited this page Aug 4, 2022
·
6 revisions
SQL standard specifies the following CREATE TABLE syntax:
CREATE [{GLOBAL | LOCAL} TEMPORARY] TABLE
Dialects have considerable variation:
CREATE [OR REPLACE] [TEMP | TEMPORARY | SNAPSHOT | EXTERNAL] TABLE [IF NOT EXISTS]
DB2:
CREATE [GLOBAL TEMPORARY] TABLE
Hive:
CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS]
CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS]
CREATE [TEMPORARY] TABLE [IF NOT EXISTS]
N1QL:
No support for CREATE TABLE.
CREATE [table_type] TABLE
table_type:
{GLOBAL | PRIVATE} TEMPORARY
| SHARDED
| DUPLICATED
| [IMMUTABLE] BLOCKCHAIN
| IMMUTABLE
CREATE [[GLOBAL | LOCAL] {TEMPORARY | TEMP} | UNLOGGED] TABLE [IF NOT EXISTS]
CREATE [[LOCAL] {TEMPORARY | TEMP}] TABLE [IF NOT EXISTS]
CREATE [EXTERNAL] TABLE [IF NOT EXISTS]
CREATE [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]
CREATE TABLE
CREATE TABLE [IF NOT EXISTS]