WORKLOAD_GROUPS
workload_groups
Name
workload_groups
description
表函数,生成 workload_groups 临时表,可以查看当前用户具有权限的资源组信息。
该函数用于from子句中。
syntax
workload_groups()
workload_groups()表结构:
mysql> desc function workload_groups();
+-------+-------------+------+-------+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-------+---------+-------+
| Id | BIGINT | No | false | NULL | NONE |
| Name | STRING | No | false | NULL | NONE |
| Item | STRING | No | false | NULL | NONE |
| Value | STRING | No | false | NULL | NONE |
+-------+-------------+------+-------+---------+-------+
example
mysql> select * from workload_groups()\G
+-------+--------+--------------+-------+
| Id | Name | Item | Value |
+-------+--------+--------------+-------+
| 11001 | normal | memory_limit | 100% |
| 11001 | normal | cpu_share | 10 |
+-------+--------+--------------+-------+
keywords
workload_groups