-
Notifications
You must be signed in to change notification settings - Fork 409
CREATE VIEW
Daniël van Eeden edited this page Mar 13, 2024
·
8 revisions
SQL standard specifies the following CREATE VIEW syntax:
CREATE [RECURSIVE] VIEW
Dialects have considerable variation:
CREATE [OR REPLACE] [MATERIALIZED] VIEW [IF NOT EXISTS]
DB2:
CREATE [OR REPLACE] VIEW
Hive:
CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]
CREATE
[OR REPLACE]
[ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}]
[DEFINER = { user | CURRENT_USER | role | CURRENT_ROLE }]
[SQL SECURITY { DEFINER | INVOKER }]
VIEW [IF NOT EXISTS]
CREATE
[OR REPLACE]
[ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}]
[DEFINER = user]
[SQL SECURITY { DEFINER | INVOKER }]
VIEW
N1QL:
No support for CREATE VIEW.
CREATE [OR REPLACE] [[NO] FORCE] [EDITIONING | EDITIONABLE [EDITIONING] | NONEDITIONABLE] VIEW
CREATE MATERIALIZED VIEW
CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW
CREATE MATERIALIZED VIEW [IF NOT EXISTS]
CREATE [OR REPLACE | MATERIALIZED] VIEW
CREATE
[DEFINER "=" {user | CURRENT_USER}]
[SCHEMA_BINDING "=" {ON | OFF}]
VIEW
CREATE [OR REPLACE] [SECURE] [RECURSIVE] VIEW [IF NOT EXISTS]
CREATE [OR REPLACE] [[GLOBAL] TEMPORARY] VIEW [IF NOT EXISTS]
CREATE [TEMPORARY | TEMP] VIEW [IF NOT EXISTS]
TiDB:
CREATE
[OR REPLACE]
[ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}]
[DEFINER = user]
[SQL SECURITY { DEFINER | INVOKER }]
VIEW
CREATE [OR ALTER | MATERIALIZED] VIEW
CREATE [OR REPLACE] [MATERIALIZED] VIEW