c6be9e8
1
2
3
4
5
6
7
UPDATE users SET quota = quota + ( SELECT SUM(remain_quota) FROM tokens WHERE tokens.user_id = users.id )