SHOW SHADOW RULE
Syntax
- When
databaseName
is not specified, the default is the currently usedDATABASE
. IfDATABASE
is not used,No database selected
will be prompted.
Return value description
- Query specified shadow rule in specified database.
SHOW SHADOW RULE shadow_rule FROM test1;
mysql> SHOW SHADOW RULE shadow_rule FROM test1;
| 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)
- Query specified shadow rule in current database.
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)
- Query shadow rules for specified database.
SHOW SHADOW RULES FROM test1;
- Query shadow rules for current database.
SHOW SHADOW RULES;
+-------------+-------------+-------------+----------------------+
| rule_name | source_name | shadow_name | shadow_table |
+-------------+-------------+-------------+----------------------+
| shadow_rule | ds_0 | ds_1 | t_order_item,t_order |
+-------------+-------------+-------------+----------------------+
Reserved word
SHOW
, SHADOW
, RULE
, RULES
,