Single Table
Syntax
SHOW SINGLE TABLE (tableRule | RULES) [FROM schemaName]
SHOW SINGLE TABLES
tableRule:
RULE tableName
Return Value Description
Single Table Rule
Column | Description |
---|---|
name | Rule name |
resource_name | Data source name |
Single Table
Column | Description |
---|---|
table_name | Single table name |
resource_name | The resource name where the single table is located |
Example
single table rules
sql> show single table rules;
+---------+---------------+
| name | resource_name |
+---------+---------------+
| default | ds_1 |
+---------+---------------+
1 row in set (0.01 sec)
single tables
mysql> show single tables;
+--------------+---------------+
| table_name | resource_name |
+--------------+---------------+
| t_single_0 | ds_0 |
| t_single_1 | ds_1 |
+--------------+---------------+
2 rows in set (0.02 sec)
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .