jl-backend-rs/sql/project/insert.sql

32 lines
570 B
MySQL
Raw Normal View History

INSERT INTO project (
id,
2023-03-19 15:21:15 +00:00
project_state,
project_type,
project_condition,
agent_id,
location_id,
title,
description,
admin_tag,
2023-03-19 15:21:15 +00:00
finish_date,
floors,
media,
time_created,
last_updated
) VALUES (
2023-03-19 15:21:15 +00:00
$1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $13
) RETURNING
id,
2023-03-19 15:21:15 +00:00
project_state as "project_state: _",
project_type as "project_type: _",
project_condition as "project_condition: _",
agent_id,
location_id,
title,
description,
admin_tag,
2023-03-19 15:21:15 +00:00
finish_date,
floors,
media as "media: _",
time_created,
last_updated;