SHOW SHARDING KEY GENERATORS
syntax is used to query sharding key generators 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 SHARDING KEY GENERATORS FROM sharding_db;
mysql> SHOW SHARDING KEY GENERATORS FROM sharding_db;
+-------------------------+-----------+-------+
| name | type | props |
+-------------------------+-----------+-------+
| snowflake_key_generator | snowflake | {} |
+-------------------------+-----------+-------+
1 row in set (0.00 sec)
SHOW SHARDING KEY GENERATORS;
mysql> SHOW SHARDING KEY GENERATORS;
+-------------------------+-----------+-------+
| name | type | props |
+-------------------------+-----------+-------+
| snowflake_key_generator | snowflake | {} |
+-------------------------+-----------+-------+
1 row in set (0.00 sec)
SHOW
, SHARDING
, KEY
, GENERATORS
, FROM