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

  1. ShowShardingTableRulesUsedAuditor::=
  2. 'SHOW' 'SHARDING' 'TABLE' 'RULES' 'USED' 'AUDITOR' AuditortorName ('FROM' databaseName)?
  3. AuditortorName ::=
  4. identifier
  5. databaseName ::=
  6. 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

ColumnsDescriptions
typeSharding rule type
nameSharding rule name

Example

  • Query sharding table rules for the specified sharding auditor in spicified logical database
  1. SHOW SHARDING TABLE RULES USED AUDITOR sharding_key_required_auditor FROM sharding_db;
  1. mysql> SHOW SHARDING TABLE RULES USED AUDITOR sharding_key_required_auditor FROM sharding_db;
  2. +-------+---------+
  3. | type | name |
  4. +-------+---------+
  5. | table | t_order |
  6. +-------+---------+
  7. 1 row in set (0.00 sec)
  • Query sharding table rules for specified sharding auditor in the current logical database
  1. SHOW SHARDING TABLE RULES USED AUDITOR sharding_key_required_auditor;
  1. mysql> SHOW SHARDING TABLE RULES USED AUDITOR sharding_key_required_auditor;
  2. +-------+---------+
  3. | type | name |
  4. +-------+---------+
  5. | table | t_order |
  6. +-------+---------+
  7. 1 row in set (0.00 sec)

Reserved word

SHOW, SHARDING, TABLE, RULES, USED, AUDITOR, FROM