nyazoom/queries/records/get_and_update.sql

9 lines
139 B
MySQL
Raw Normal View History

2024-11-20 16:06:07 +00:00
UPDATE record
SET downloads = downloads + 1
WHERE cache_name = ?
RETURNING
cache_name,
uploaded,
downloads,
max_downloads;