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

24 lines
279 B
MySQL
Raw Normal View History

2023-03-09 17:45:16 +00:00
INSERT INTO property (
id,
title,
description,
agent_id,
state,
time_created,
last_updated
) VALUES (
$1,
$2,
$3,
$4,
$5,
$6,
$6
) RETURNING
id,
title,
description,
agent_id,
state as "state: _",
time_created,
last_updated;