RefLib

Reference library for AI

Back

postgresql_16:7.1.181.3 Outputs

PostgreSQL 16 > Reference > SQL Commands > UPDATE > Outputs

On successful completion, an UPDATE command returns a command tag of the form UPDATE *count* The *count* is the number of rows updated, including matched rows whose values did not change. Note that the number may be less than the number of rows that matched the *condition* when updates were suppressed by a BEFORE UPDATE trigger. If *count* is 0, no rows were updated by the query (this is not considered an error).

If the UPDATE 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) updated by the command.

Back