SHOW SHARDING TABLE RULES USED AUDITOR
Description
SHOW SHARDING TABLE RULES USED ALGORITHM
syntax is used to query sharding rules used specified sharding auditor in specified logical database
Syntax
Grammar Railroad diagram
ShowShardingTableRulesUsedAuditor::=
'SHOW' 'SHARDING' 'TABLE' 'RULES' 'USED' 'AUDITOR' AuditortorName ('FROM' databaseName)?
AuditortorName ::=
identifier
databaseName ::=
identifier
Supplement
- When databaseName is not specified, the default is the currently used DATABASE. If DATABASE is not used, No database selected will be prompted.
Return value description
Columns | Descriptions |
---|---|
type | Sharding rule type |
name | Sharding rule name |
Example
- Query sharding table rules for the specified sharding auditor in spicified logical database
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)
- Query sharding table rules for specified sharding auditor in the current logical database
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)
Reserved word
SHOW
, SHARDING
, TABLE
, RULES
, USED
, AUDITOR
, FROM
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .