SHOW SHARDING TABLE RULES USED ALGORITHM syntax is used to query sharding rules used specified sharding algorithm in specified logical database
ShowShardingTableRulesUsedAlgorithm::=
  'SHOW' 'SHARDING' 'TABLE' 'RULES' 'USED' 'ALGORITHM' algorithmName ('FROM' databaseName)?
algorithmName ::=
  identifier
databaseName ::=
  identifier
| Columns | Descriptions | 
|---|---|
| type | Sharding rule type | 
| name | Sharding rule name | 
SHOW SHARDING TABLE RULES USED ALGORITHM table_inline FROM sharding_db;
mysql> SHOW SHARDING TABLE RULES USED ALGORITHM table_inline FROM sharding_db;
+-------+--------------+
| type  | name         |
+-------+--------------+
| table | t_order_item |
+-------+--------------+
1 row in set (0.00 sec)
SHOW SHARDING TABLE RULES USED ALGORITHM table_inline;
mysql> SHOW SHARDING TABLE RULES USED ALGORITHM table_inline;
+-------+--------------+
| type  | name         |
+-------+--------------+
| table | t_order_item |
+-------+--------------+
1 row in set (0.01 sec)
SHOW, SHARDING, TABLE, RULES, USED, ALGORITHM, FROM
