menghaoranss edited a comment on issue #10454:
URL: 
https://github.com/apache/shardingsphere/issues/10454#issuecomment-849480104


   **SHOW SHARDING TABLE RULES (FROM schemaName)?**
   ```
   mysql> show sharding table rules;
   
+--------------+---------------------------------+-------------------+----------------------+------------------------+-------------------------------+----------------------------------------+-------------------+---------------------+----------------------------+---------------------------------------------------+-------------------+------------------+-------------------+
   | table        | actualDataNodes                 | actualDataSources | 
databaseStrategyType | databaseShardingColumn | databaseShardingAlgorithmType | 
databaseShardingAlgorithmProps         | tableStrategyType | 
tableShardingColumn | tableShardingAlgorithmType | tableShardingAlgorithmProps  
                     | keyGenerateColumn | keyGeneratorType | keyGeneratorProps 
|
   
+--------------+---------------------------------+-------------------+----------------------+------------------------+-------------------------------+----------------------------------------+-------------------+---------------------+----------------------------+---------------------------------------------------+-------------------+------------------+-------------------+
   | t_order      | ds_${0..1}.t_order_${0..1}      |                   | 
INLINE               | user_id                | INLINE                        | 
algorithm-expression:ds_${user_id % 2} | INLINE            | order_id           
 | INLINE                     | algorithm-expression:t_order_${order_id % 2}    
  | order_id          | SNOWFLAKE        | worker-id:123     |
   | t_order_item | ds_${0..1}.t_order_item_${0..1} |                   | 
INLINE               | user_id                | INLINE                        | 
algorithm-expression:ds_${user_id % 2} | INLINE            | order_id           
 | INLINE                     | algorithm-expression:t_order_item_${order_id % 
2} | order_item_id     | SNOWFLAKE        | worker-id:123     |
   | t2           |                                 | ds_0,ds_1         |       
               |                        |                               |       
                                 | mod               | id                  | 
mod                        | sharding-count:10                                 
|                   |                  |                   |
   
+--------------+---------------------------------+-------------------+----------------------+------------------------+-------------------------------+----------------------------------------+-------------------+---------------------+----------------------------+---------------------------------------------------+-------------------+------------------+-------------------+
   3 rows in set (0.02 sec)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to