remax-backend-rs/sql/property_details/update.sql

11 lines
238 B
SQL

UPDATE property_details SET
meters = $1,
listing_type = $2,
photo_urls = $3,
location_id = $4
RETURNING
property_id,
meters,
listing_type as "listing_type: _",
photo_urls as "photo_urls: _",
location_id