370cccf8d9
* feat: improve flinksql createStatement * feat: complete CREATE syntax unit tests * feat: complete CREATA TABLE syntax tests * feat: develop flinkSQL grammar * feat: improve tableConstraint * fix: convert TIMESTAMP_LTZ * test: improve tests * feat: build new flinksql parser and lexer * test: add CREATE TEMPLATE TABLE test
37 lines
414 B
SQL
37 lines
414 B
SQL
CREATE VIEW v AS
|
|
SELECT
|
|
col1
|
|
FROM
|
|
tbl;
|
|
|
|
CREATE TEMPORARY VIEW v AS
|
|
SELECT
|
|
col1
|
|
FROM
|
|
tbl;
|
|
|
|
CREATE VIEW v COMMENT 'this is a view' AS
|
|
SELECT
|
|
col1
|
|
FROM
|
|
tbl;
|
|
|
|
CREATE VIEW v(col1, col2) AS
|
|
SELECT
|
|
col3,
|
|
col4
|
|
FROM
|
|
tbl;
|
|
|
|
CREATE VIEW v(col1, col2) COMMENT 'this is a view' AS
|
|
SELECT
|
|
col3,
|
|
col4
|
|
FROM
|
|
tbl;
|
|
|
|
CREATE TEMPORARY VIEW IF NOT EXISTS v AS
|
|
SELECT
|
|
col1
|
|
FROM
|
|
tbl; |