lava-oushudb-dt-sql-parser/test/parser/flink/syntax/fixtures/selectWhere.sql
Hayden bb0fad1dbe
refactor: standard naming (#278)
* 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
2024-03-27 10:33:25 +08:00

27 lines
714 B
SQL

SELECT id, age FROM table1 WHERE age IS NOT NULL;
SELECT id, age FROM table1 WHERE age IS NOT DISTINCT FROM 12;
SELECT id, age FROM table1 WHERE age BETWEEN SYMMETRIC 25 AND 18;
SELECT id, age FROM table1 WHERE age NOT LIKE "%aa_d%" ESCAPE "a";
SELECT addr FROM table1 WHERE addr NOT SIMILAR TO '%(123|yz)%' ESCAPE "y";
SELECT id, age FROM table1 WHERE age NOT IN (18,19,20);
SELECT id FROM table1 WHERE id NOT IN ( SELECT * FROM table2 );
SELECT S,SNAME
FROM S
WHERE NOT EXISTS
(SELECT *
FROM C
WHERE NOT EXISTS
(SELECT *
FROM SC
WHERE SC.S=S.S AND SC.C=C.C));
SELECT id, age FROM table1 WHERE age > 18 OR id = 1;
SELECT id, age FROM table1 WHERE age > 18 AND id > 10;