lava-oushudb-dt-sql-parser/test/parser/mysql/syntax/fixtures/alterResourceGroup.sql
琉易 428d851913
feat: #190 improve mysql grammer (#196)
* refactor: generic rename to mysql

* refactor: g4 with mysql syntax

* test: mysql syntax

* refactor: remove useless keywords

* refactor: remove nonReserved keywords

* refactor: lint specificFunction

---------

Co-authored-by: liuyi <liuyi@dtstack.com>
2023-11-27 15:25:40 +08:00

26 lines
1005 B
SQL

-- https://dev.mysql.com/doc/refman/8.0/en/alter-resource-group.html
/* ALTER RESOURCE GROUP group_name
[VCPU [=] vcpu_spec [, vcpu_spec] ...]
[THREAD_PRIORITY [=] N]
[ENABLE|DISABLE [FORCE]]
vcpu_spec: {N | M - N} */
ALTER RESOURCE GROUP group_name VCPU = 2, 3 THREAD_PRIORITY = 5 DISABLE FORCE;
ALTER RESOURCE GROUP group_name VCPU = 2, 3 THREAD_PRIORITY = 5 ENABLE FORCE;
ALTER RESOURCE GROUP group_name VCPU 2 THREAD_PRIORITY 5 ENABLE FORCE;
ALTER RESOURCE GROUP group_name VCPU 2 THREAD_PRIORITY 5 ENABLE;
ALTER RESOURCE GROUP group_name VCPU 2 THREAD_PRIORITY 5 DISABLE;
ALTER RESOURCE GROUP group_name VCPU 2 THREAD_PRIORITY 5;
ALTER RESOURCE GROUP group_name VCPU 2 DISABLE FORCE;
ALTER RESOURCE GROUP group_name DISABLE FORCE;
ALTER RESOURCE GROUP group_name ENABLE FORCE;
ALTER RESOURCE GROUP group_name;
ALTER RESOURCE GROUP rg1 VCPU = 0-63;
ALTER RESOURCE GROUP rg1 VCPU = 0-63, 64-65, 66;
ALTER RESOURCE GROUP rg2 THREAD_PRIORITY = 5;
ALTER RESOURCE GROUP rg3 DISABLE FORCE;