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