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

12 lines
158 B
SQL

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