The SHOW RULES USED RESOURCE
syntax is used to query the rules that use the specified resource in the specified database.
showRulesUsedResource ::=
'SHOW' 'RULES' 'USED' 'RESOURCES' resourceName ('FROM' databaseName)?
resourceName ::=
IDENTIFIER | STRING
databaseName ::=
IDENTIFIER
databaseName
is not specified, the default is the currently used DATABASE
; if DATABASE
is not used, it will prompt No database selected
.Column | Description |
---|---|
type | features |
name | Data source name |
SHOW RULES USED RESOURCE ds_0 FROM sharding_db;
+----------+--------------+
| type | name |
+----------+--------------+
| sharding | t_order |
| sharding | t_order_item |
+----------+--------------+
2 rows in set (0.00 sec)
SHOW RULES USED RESOURCE ds_0;
+----------+--------------+
| type | name |
+----------+--------------+
| sharding | t_order |
| sharding | t_order_item |
+----------+--------------+
2 rows in set (0.00 sec)