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

11 lines
226 B
MySQL
Raw Normal View History

2023-04-14 18:42:52 +00:00
SELECT
id,
shortcode,
full_name,
credential,
credential_type as "credential_type: _",
profile_picture_url,
time_created,
last_updated
FROM agent where shortcode = $1
ORDER BY time_created DESC;