SHOW UNUSED SHARDING AUDITORS
语法用于查询指定逻辑库中未被使用的分片审计器。
ShowUnusedShardingAuditors::=
'SHOW' 'SHARDING' 'AUDITOR' ('FROM' databaseName)?
databaseName ::=
identifier
databaseName
时,默认是当前使用的 DATABASE
。 如果也未使用 DATABASE
则会提示 No database selected
。列 | 说明 |
---|---|
name | 分片审计器名称 |
type | 分片审计算法类型 |
props | 分片审计算法参数 |
SHOW UNUSED SHARDING AUDITORS FROM sharding_db;
mysql> SHOW UNUSED SHARDING AUDITORS FROM sharding_db;
+-------------------------------+-------------------------+-------+
| name | type | props |
+-------------------------------+-------------------------+-------+
| sharding_key_required_auditor | dml_sharding_conditions | |
+-------------------------------+-------------------------+-------+
1 row in set (0.00 sec)
SHOW UNUSED SHARDING AUDITORS;
mysql> SHOW UNUSED SHARDING AUDITORS;
+-------------------------------+-------------------------+-------+
| name | type | props |
+-------------------------------+-------------------------+-------+
| sharding_key_required_auditor | dml_sharding_conditions | |
+-------------------------------+-------------------------+-------+
1 row in set (0.00 sec)
SHOW
、UNUSED
、SHARDING
、AUDITORS
、FROM