SHOW SHARDING TABLE RULES USED ALGORITHM
syntax is used to query sharding rules used specified sharding auditor in specified logical database
ShowShardingTableRulesUsedAuditor::=
'SHOW' 'SHARDING' 'TABLE' 'RULES' 'USED' 'AUDITOR' AuditortorName ('FROM' databaseName)?
AuditortorName ::=
identifier
databaseName ::=
identifier
Columns | Descriptions |
---|---|
type | Sharding rule type |
name | Sharding rule 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