Skip to content

Commit

Permalink
ebnf update (#17099)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored Apr 22, 2024
1 parent 39a02d4 commit a856870
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions sql-statements/sql-statement-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a856870

Please sign in to comment.