SHOW SHADOW RULE
语法
- 未指定
databaseName
时,默认是当前使用的 DATABASE
。 如果也未使用 DATABASE
则会提示 No database selected
。
返回值说明
SHOW SHADOW RULE shadow_rule FROM shadow_db;
mysql> SHOW SHADOW RULE shadow_rule FROM shadow_db;
| rule_name | source_name | shadow_name | shadow_table |
+-------------+-------------+-------------+----------------------+
| shadow_rule | ds_0 | ds_1 | t_order_item,t_order |
1 row in set (0.00 sec)
mysql> SHOW SHADOW RULE shadow_rule;
+-------------+-------------+-------------+----------------------+
| rule_name | source_name | shadow_name | shadow_table |
+-------------+-------------+-------------+----------------------+
| shadow_rule | ds_0 | ds_1 | t_order_item,t_order |
1 row in set (0.01 sec)
SHOW SHADOW RULES FROM shadow_db;
SHOW SHADOW RULES;
+-------------+-------------+-------------+----------------------+
| rule_name | source_name | shadow_name | shadow_table |
+-------------+-------------+-------------+----------------------+
| shadow_rule | ds_0 | ds_1 | t_order_item,t_order |
+-------------+-------------+-------------+----------------------+
保留字