Skip to content
Snippets Groups Projects
Commit 32307350 authored by Alexander Tolstoy's avatar Alexander Tolstoy Committed by Denis Smirnov
Browse files

add UPDATE to EBNF

parent cba2c073
No related branches found
No related tags found
1 merge request!1414sbroad import
STATEMENT ::= EXPLAIN | DDL | DML | DQL | ACL
EXPLAIN ::= 'EXPLAIN' ( DML | DQL )
DQL ::= (SELECT | SELECT UNION ALL SELECT | SELECT (EXCEPT 'DISTINCT'? ) SELECT ) Options?
DML ::= (DELETE | INSERT) Options?
DML ::= (DELETE | INSERT | UPDATE) Options?
DDL ::= CreateTable | DropTable
ACL ::= DropUser | CreateRole | CreateUser
CreateRole ::= `create role` role ('option' '(' ('timeout' '=' DOUBLE)')')?
......@@ -55,4 +55,5 @@ type ::= 'ANY'
| 'VARCHAR' ('(' length ')')?
DELETE ::= 'DELETE' 'FROM' table ('WHERE' expression)?
INSERT ::= 'INSERT' 'INTO' table ('(' name (',' name)* ')')? (VALUES row | SELECT ) ('on conflict' 'do' ('nothing' | 'replace' | 'fail'))?
UPDATE ::= 'UPDATE' table 'set' ( name '=' ((table '.')? name) (',' name '=' (table '.')? name)* ) ( 'FROM' '(' SELECT ')' ( 'AS' name )? )? ( 'WHERE' expression )?
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment