Introduction
The UPDATE statement changes data in a table. The RETURNING clause shows the changed rows right away.
You want to update a customer's address and see the new address immediately.
You need to change product prices and get the updated prices back in one step.
You want to mark tasks as done and see which tasks were updated.
You update user roles and want to confirm the changes without a separate query.