temp: get and update
This commit is contained in:
parent
88e1cd98f2
commit
66a59df6ab
1 changed files with 8 additions and 0 deletions
8
queries/records/get_and_update.sql
Normal file
8
queries/records/get_and_update.sql
Normal file
|
@ -0,0 +1,8 @@
|
|||
UPDATE record
|
||||
SET downloads = downloads + 1
|
||||
WHERE cache_name = ?
|
||||
RETURNING
|
||||
cache_name,
|
||||
uploaded,
|
||||
downloads,
|
||||
max_downloads;
|
Loading…
Reference in a new issue