9 lines
139 B
MySQL
9 lines
139 B
MySQL
|
UPDATE record
|
||
|
SET downloads = downloads + 1
|
||
|
WHERE cache_name = ?
|
||
|
RETURNING
|
||
|
cache_name,
|
||
|
uploaded,
|
||
|
downloads,
|
||
|
max_downloads;
|