jl-backend-rs/sql/agent/update.sql

17 lines
340 B
MySQL
Raw Normal View History

UPDATE agent SET
full_name = $1,
2023-04-14 18:42:52 +00:00
shortcode = $2,
credential = $3,
credential_type = $4,
profile_picture_url = $5,
last_updated = $6
WHERE id = $7
RETURNING
id,
2023-04-14 18:42:52 +00:00
shortcode,
full_name,
credential,
credential_type as "credential_type: _",
profile_picture_url,
time_created,
last_updated;