sql: add batch DELETE syntax #104157
Labels
A-sql-syntax
Issues strictly related to the SQL grammar, with no semantic aspect
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Add the following
DELETE
syntax in preparation of bulk delete:DELETE BATCH FROM
- To use the the default batch sizeDELETE BATCH (SIZE expr) FROM
- To use the specified batch sizeThese will return unimplemented errors for now.
The syntax fulfills the following requirements:
DELETE
keyword comes first because some tools look at the first keyword to determine what type of statement it is.BATCH
params can be added in the future in a backward compatible way.BATCH
params (onlySIZE
for now) are order-independent for usability.SIZE
value is an expression to allow composing aDELETE
statement from subqueries.Jira issue: CRDB-28377
Epic CRDB-456
The text was updated successfully, but these errors were encountered: