SHOW UNUSED SHARDING KEY GENERATORS
Description
SHOW SHARDING KEY GENERATORS
syntax is used to query sharding key generators that are not used in specified database.
Syntax
Grammar Railroad diagram
ShowShardingKeyGenerators::=
'SHOW' 'SHARDING' 'KEY' 'GENERATOR' ('FROM' databaseName)?
databaseName ::=
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
column | Description |
---|---|
name | Sharding key generator name |
type | Sharding key generator type |
props | Sharding key generator properties |
Example
- Query sharding key generators that are not used in the specified logical database
SHOW UNUSED SHARDING KEY GENERATORS FROM sharding_db;
mysql> SHOW UNUSED SHARDING KEY GENERATORS FROM sharding_db;
+-------------------------+-----------+-------+
| name | type | props |
+-------------------------+-----------+-------+
| snowflake_key_generator | snowflake | |
+-------------------------+-----------+-------+
1 row in set (0.00 sec)
- Query sharding key generators that are not used in the current logical database
SHOW UNUSED SHARDING KEY GENERATORS;
mysql> SHOW UNUSED SHARDING KEY GENERATORS;
+-------------------------+-----------+-------+
| name | type | props |
+-------------------------+-----------+-------+
| snowflake_key_generator | snowflake | |
+-------------------------+-----------+-------+
1 row in set (0.00 sec)
Reserved word
SHOW
, UNUSED
, SHARDING
, KEY
, GENERATORS
, FROM
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .