RefLib

Reference library for AI

Back

postgresql_16:7.1.98.3 Outputs

PostgreSQL 16 > Reference > SQL Commands > DELETE > Outputs

On successful completion, a DELETE command returns a command tag of the form DELETE *count* The *count* is the number of rows deleted. Note that the number may be less than the number of rows that matched the *condition* when deletes were suppressed by a BEFORE DELETE trigger. If *count* is 0, no rows were deleted by the query (this is not considered an error).

If the DELETE command contains a RETURNING clause, the result will be similar to that of a SELECT statement containing the columns and values defined in the RETURNING list, computed over the row(s) deleted by the command.

Back