bb0fad1dbe
* refactor: rename flinksql to flink * refactor: rename pgsql to postgresql * refactor: rename trinosql to trino * refactor: replace all default exports with named export * refactor: rename basicParser to basicSQL * refactor: rename basic-parser-types to types * refactor: replace arrow func with plain func
41 lines
545 B
SQL
41 lines
545 B
SQL
DROP CATALOG cat;
|
|
|
|
SELECT * FROM cat. ;
|
|
|
|
CREATE TABLE cat.db ;
|
|
|
|
SHOW TABLES FROM cat;
|
|
|
|
ALTER DATABASE cat.;
|
|
|
|
DROP VIEW v;
|
|
|
|
SELECT * FROM ;
|
|
|
|
CREATE VIEW cv;
|
|
|
|
SELECT name, calculate_age(birthdate) AS age FROM students;
|
|
|
|
CREATE FUNCTION fnc;
|
|
|
|
SHOW COLUMNS FROM vie;
|
|
|
|
SHOW CREATE TABLE tb1;
|
|
|
|
SHOW CREATE VIEW v1;
|
|
|
|
SELECT col ;
|
|
|
|
SELECT col FROM tb1;
|
|
|
|
SELECT col, FROM tb1;
|
|
|
|
SELECT * FROM tb ORDER BY ;
|
|
|
|
SELECT * FROM tb GROUP BY ;
|
|
|
|
INSERT INTO tb (col, tb.c );
|
|
|
|
CREATE TABLE yourTable (ts TIMESTAMP(3), WATERMARK FOR );
|
|
|
|
CREATE TABLE newTable ( ); |