mirror of
https://gh-proxy.org/https://github.com/klinsmaya/new-api.git
synced 2026-11-08 01:17:09 +08:00
7 lines
118 B
SQL
7 lines
118 B
SQL
UPDATE users
|
|
SET quota = quota + (
|
|
SELECT SUM(remain_quota)
|
|
FROM tokens
|
|
WHERE tokens.user_id = users.id
|
|
)
|