You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: v2.1/delete.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,9 @@ The user must have the `DELETE` and `SELECT` [privileges](privileges.html) on th
17
17
18
18
## Synopsis
19
19
20
-
{% include {{ page.version.version }}/sql/diagrams/delete.html %}
21
-
22
-
<divmarkdown="1"></div>
20
+
<div>
21
+
{% include {{ page.version.version }}/sql/diagrams/delete.html %}
22
+
</div>
23
23
24
24
## Parameters
25
25
@@ -29,23 +29,23 @@ table td:first-child {
29
29
}
30
30
</style>
31
31
32
-
Parameter | Description
32
+
Parameter | Description
33
33
-----------|-------------
34
34
`common_table_expr` | See [Common Table Expressions](common-table-expressions.html).
35
35
`table_name` | The name of the table that contains the rows you want to update.
36
36
`AS table_alias_name` | An alias for the table name. When an alias is provided, it completely hides the actual table name.
37
37
`WHERE a_expr`| `a_expr` must be an expression that returns Boolean values using columns (e.g., `<column> = <value>`). Delete rows that return `TRUE`.<br><br/>__Without a `WHERE` clause in your statement, `DELETE` removes all rows from the table.__
38
38
`sort_clause` | An `ORDER BY` clause. See [Ordering Query Results](query-order.html) for more details.
39
39
`limit_clause` | A `LIMIT` clause. See [Limiting Query Results](limit-offset.html) for more details.
40
-
`RETURNING target_list` | Return values based on rows deleted, where `target_list` can be specific column names from the table, `*` for all columns, or computations using [scalar expressions](scalar-expressions.html). <br><br>To return nothing in the response, not even the number of rows updated, use `RETURNING NOTHING`.
40
+
`RETURNING target_list` | Return values based on rows deleted, where `target_list` can be specific column names from the table, `*` for all columns, or computations using [scalar expressions](scalar-expressions.html). <br><br>To return nothing in the response, not even the number of rows updated, use `RETURNING NOTHING`.
41
41
42
42
## Success responses
43
43
44
44
Successful `DELETE` statements return one of the following:
45
45
46
-
Response | Description
46
+
Response | Description
47
47
-----------|-------------
48
-
`DELETE`_`int`_ | _int_ rows were deleted.<br><br>`DELETE` statements that do not delete any rows respond with `DELETE 0`. When `RETURNING NOTHING` is used, this information is not included in the response.
48
+
`DELETE`_`int`_ | _int_ rows were deleted.<br><br>`DELETE` statements that do not delete any rows respond with `DELETE 0`. When `RETURNING NOTHING` is used, this information is not included in the response.
49
49
Retrieved table | Including the `RETURNING` clause retrieves the deleted rows, using the columns identified by the clause's parameters.<br><br>[See an example.](#return-deleted-rows)
0 commit comments