OLD and NEW
RETURNING can show both versions of a row from one UPDATE.
task
Raise price_cents of boots in temp table pr by 10 percent (integer division) and return product_id, the old price and the new price, ordered by product_id.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
RETURNING can show both versions of a row from one UPDATE.
Raise price_cents of boots in temp table pr by 10 percent (integer division) and return product_id, the old price and the new price, ordered by product_id.