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

14 lines
235 B
MySQL
Raw Normal View History

2023-03-09 17:45:16 +00:00
UPDATE property SET
title = $1,
description = $2,
agent_id = $3,
state = $4,
last_updated = $5
RETURNING
id,
title,
description,
agent_id,
state as "state: _",
time_created,
last_updated;