SHOW RULE
Command Format:
- It is used to view the sharding rule of each logical table in a certain schema.
- It is used to view the sharding rule of a specific logical table in a certain schema.
Output Details:
TABLE_NAME: indicates the name of the logical table.
BROADCAST: specifies whether the table is a broadcast table. 0 indicates that the table is not a broadcast table. 1 indicates the table is a broadcast table.
DB_PARTITION_KEY: indicates the database sharding key. Leave this field blank if database sharding is not required.
DB_PARTITION_POLICY: indicates the database sharding algorithm. The value can be HASH, YYYYMM, YYYYDD, and YYYYWEEK.
DB_PARTITION_COUNT: indicates the number of database shards.
DB_PARTITION_OFFSET: indicates where a new database shard starts from.
PARTITION_RANGE: indicates the sharding range when the database sharding algorithm is range.
TB_PARTITION_KEY: indicates the table sharding key. Leave this field blank if table sharding is not required.
TB_PARTITION_POLICY: indicates the table sharding algorithm. The value can be HASH, MM, DD, MMDD, or WEEK.
TB_PARTITION_COUNT: indicates the number of physical tables in each database shard.
TB_PARTITION_OFFSET: indicates where a new physical table starts from.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot