SHOW SHARDING KEY GENERATORS
syntax is used to query sharding key generators that are not used in specified database.
ShowShardingKeyGenerators::=
'SHOW' 'SHARDING' 'KEY' 'GENERATOR'('FROM' databaseName)?
databaseName ::=
identifier
column | Description |
---|---|
name | Sharding key generator name |
type | Sharding key generator type |
props | Sharding key generator properties |
SHOW UNUSED SHARDING KEY GENERATORS FROM test1;
mysql> SHOW UNUSED SHARDING KEY GENERATORS FROM test1;
+-------------------------+-----------+-------+
| name | type | props |
+-------------------------+-----------+-------+
| snowflake_key_generator | snowflake | |
+-------------------------+-----------+-------+
1 row in set (0.00 sec)
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)
SHOW
, UNUSED
, SHARDING
, KEY
, GENERATORS
, FROM