nyazoom/queries/records/get_and_update.sql
2024-11-20 08:06:08 -08:00

8 lines
139 B
SQL

UPDATE record
SET downloads = downloads + 1
WHERE cache_name = ?
RETURNING
cache_name,
uploaded,
downloads,
max_downloads;