SHOW RULES USED RESOURCE
Description
The SHOW RULES USED RESOURCE
syntax is used to query the rules that use the specified resource in the specified database.
Syntax
showRulesUsedResource ::=
'SHOW' 'RULES' 'USED' 'RESOURCES' resourceName ('FROM' databaseName)?
resourceName ::=
IDENTIFIER | STRING
databaseName ::=
IDENTIFIER
Supplement
- When
databaseName
is not specified, the default is the currently usedDATABASE
; ifDATABASE
is not used, it will promptNo database selected
.
Return Value Description
Column | Description |
---|---|
type | features |
name | Data source name |
Example
- Query the rules that use the specified resource in the specified database
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)
- Query the rules that use the specified resource in the current database
SHOW RULES USED RESOURCE ds_0;
+----------+--------------+
| type | name |
+----------+--------------+
| sharding | t_order |
| sharding | t_order_item |
+----------+--------------+
2 rows in set (0.00 sec)
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .