2020-07-14 21:02:41 +00:00
|
|
|
---
|
|
|
|
toc_priority: 46
|
|
|
|
toc_title: QUOTA
|
|
|
|
---
|
|
|
|
|
|
|
|
# ALTER QUOTA {#alter-quota-statement}
|
|
|
|
|
|
|
|
Changes quotas.
|
|
|
|
|
|
|
|
Syntax:
|
|
|
|
|
|
|
|
``` sql
|
|
|
|
ALTER QUOTA [IF EXISTS] name [ON CLUSTER cluster_name]
|
|
|
|
[RENAME TO new_name]
|
|
|
|
[KEYED BY {'none' | 'user name' | 'ip address' | 'client key' | 'client key or user name' | 'client key or ip address'}]
|
2020-08-08 08:16:56 +00:00
|
|
|
[FOR [RANDOMIZED] INTERVAL number {SECOND | MINUTE | HOUR | DAY | WEEK | MONTH | QUARTER | YEAR}
|
2020-07-14 21:02:41 +00:00
|
|
|
{MAX { {QUERIES | ERRORS | RESULT ROWS | RESULT BYTES | READ ROWS | READ BYTES | EXECUTION TIME} = number } [,...] |
|
|
|
|
NO LIMITS | TRACKING ONLY} [,...]]
|
|
|
|
[TO {role [,...] | ALL | ALL EXCEPT role [,...]}]
|
|
|
|
```
|