-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4581 from cockroachdb/20190327-delete-order-by-limit
`LIMIT` is required on a `DELETE ... ORDER BY`
- Loading branch information
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