forecast_api/route_sql/undo.sql

5 lines
115 B
MySQL
Raw Normal View History

2020-02-14 14:41:29 -05:00
WITH
d AS (
DELETE FROM rlarp.osm_log WHERE id = replace_id RETURNING id
)
SELECT json_agg(row_to_json(d)) x from d