-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LIMIT
is required on a DELETE ... ORDER BY
Fixes #4378. Summary of changes: - Update `DELETE`'s `sort_clause` parameter to note that as of 19.1, a `LIMIT` is required on a `DELETE ... ORDER BY` - Add new section 'Sorting the output of deletes' to both the `DELETE` and 'Ordering Query Results' pages. - Add example section 'Sort an return deleted rows' to the `DELETE` page - Update all examples on `DELETE` page to use new SQL CLI output table formatting - Add SQL code needed for `DELETE` examples in a comment at the bottom of the page
- Loading branch information
1 parent
365102a
commit 61e680f
Showing
3 changed files
with
94 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
To sort the output of a `DELETE` statement, use: | ||
|
||
{% include copy-clipboard.html %} | ||
~~~ sql | ||
SELECT ... FROM [DELETE ...] ORDER BY ... | ||
~~~ | ||
|
||
For an example, see [Sort and return deleted rows](delete.html#sort-and-return-deleted-rows). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters