From 65310bd2ffaa2dde8d6fff26a404e6a614576827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Mon, 22 Apr 2024 08:40:39 +0200 Subject: [PATCH] ebnf update (#17099) --- sql-statements/sql-statement-update.md | 33 ++++++++++---------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/sql-statements/sql-statement-update.md b/sql-statements/sql-statement-update.md index 903de2e3230da..74e73671b84c3 100644 --- a/sql-statements/sql-statement-update.md +++ b/sql-statements/sql-statement-update.md @@ -10,29 +10,22 @@ The `UPDATE` statement is used to modify data in a specified table. ## Synopsis -**UpdateStmt:** +```ebnf+diagram +UpdateStmt ::= + "UPDATE" UpdateOption +( TableRef "SET" Assignment ("," Assignment)* WhereClause? OrderBy? Limit? +| TableRefs "SET" Assignment ("," Assignment)* WhereClause? +) -![UpdateStmt](/media/sqlgram/UpdateStmt.png) +UpdateOption ::= + OptimizerHints? ("LOW_PRIORITY" | "HIGH_PRIORITY" | "DELAYED")? "IGNORE"? -**PriorityOpt:** +TableRef ::= + ( TableFactor | JoinTable ) -![PriorityOpt](/media/sqlgram/PriorityOpt.png) - -**TableRef:** - -![TableRef](/media/sqlgram/TableRef.png) - -**TableRefs:** - -![TableRefs](/media/sqlgram/TableRefs.png) - -**AssignmentList:** - -![AssignmentList](/media/sqlgram/AssignmentList.png) - -**WhereClauseOptional:** - -![WhereClauseOptional](/media/sqlgram/WhereClauseOptional.png) +TableRefs ::= + EscapedTableRef ("," EscapedTableRef)* +``` ## Examples