realtor-lp-backend/sql/property_arrangement/update.sql

13 lines
281 B
SQL

UPDATE property_arrangement SET
price = $2,
currency = $3,
arrangement = $4,
last_updated = $5
WHERE property_id = $1 AND arrangement = $4
RETURNING
property_id,
price,
currency,
arrangement as "arrangement: _",
time_created,
last_updated;