nyazoom/queries/records/get_and_update.sql

9 lines
139 B
MySQL
Raw Normal View History

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