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