lava-oushudb-dt-sql-parser/test/parser/pgsql/syntax/fixtures/delete.sql
XCynthia 2e6d18e7dc
feat: improve pgsql grammar and add unit tests(#201)
* feat(pgsql: upgrade keywords and refresh them to parser file): pgsql

* feat(pgsql: check create table's syntax): pgsql

* feat(pgsql: check and update drop syntax): pgsql: check and update drop syntax

* feat: pgsql: check create's sql syntax and update g4 file

* feat: pgsql:complete other's sql and syntax except select, insert, drop

* feat: pgsql: update create, delete, insert, select, update and others' syntax

* test: pgsql: update alter's sql

* feat: pgsql: update syntax g4 file

* feat: pgsql: upgrade keywords to without '_P' in lexer and parser file

* docs: pgsql: update copyright and Reference of parser and lexer

---------

Co-authored-by: zhaoge <>
2023-11-09 11:53:40 +08:00

12 lines
251 B
SQL

DELETE FROM weather WHERE city = 'Hayward';
DELETE FROM products
WHERE obsoletion_date = 'today'
RETURNING ab AS abc_name;
WITH RECURSIVE a AS (SELECT * from bt )
DELETE FROM ONLY table_name * AS alias
USING using_list
WHERE y > 4
RETURNING *;