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

12 lines
158 B
MySQL
Raw Normal View History

2023-03-09 17:45:16 +00:00
SELECT
id,
title,
description,
agent_id,
state as "state: _",
time_created,
last_updated
FROM property
WHERE id = ANY($1)
ORDER BY time_created DESC
LIMIT 50