-
Notifications
You must be signed in to change notification settings - Fork 409
INSERT INTO
Daniël van Eeden edited this page Mar 13, 2024
·
6 revisions
SQL standard specifies the following CREATE TABLE syntax:
INSERT INTO table_name
All dialects (except Hive) suppurt this syntax, plus a bunch of extra stuff:
INSERT [INTO] table_name
DB2:
INSERT INTO table_name
Hive:
INSERT INTO TABLE table_name
INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO] table_name
REPLACE [LOW_PRIORITY | DELAYED] [INTO] table_name
INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO] table_name
REPLACE [LOW_PRIORITY | DELAYED] [INTO] table_name
N1QL:
INSERT INTO table_name
INSERT [hint] {INTO | multi_table_insert}
multi_table_insert:
| ALL INTO
| [ALL | FIRST] WHEN condition THEN INTO
INSERT INTO table_name
INSERT INTO table_name
INSERT [IGNORE] [INTO] table_name
REPLACE [INTO] table_name
INSERT [OVERWRITE] { INTO tablename | multi_table_insert}
multi_table_insert:
| ALL INTO tablename
| [ALL | FIRST] case_insert [ ... ]
case_insert:
| WHEN condition THEN INTO tablename
| ELSE INTO tablename
INSERT [INTO | OVERWRITE] [TABLE] table_name
INSERT [OR {ABORT | FAIL | IGNORE | REPLACE | ROLLBACK}] INTO table_name
REPLACE INTO table_name
TiDB:
INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO] table_name
REPLACE [LOW_PRIORITY | DELAYED] [INTO] table_name
INSERT [TOP ( expression ) [PERCENT]] [INTO] table_name
INSERT INTO table_name