The SHOW SHADOW TABLE RULES
syntax is used to query shadow table rules for specified database.
ShowShadowTableRule::=
'SHOW' 'SHADOW' 'TABLE' 'RULES' ('FROM' databaseName)?
databaseName ::=
identifier
databaseName
is not specified, the default is the currently used DATABASE
. If DATABASE
is not used, No database selected
will be prompted.Column | Description |
---|---|
shadow_table | Shadow table |
shadow_algorithm_name | Shadow algorithm name |
SHOW SHADOW TABLE RULES FROM shadow_db;
mysql> SHOW SHADOW TABLE RULES FROM shadow_db;
+--------------+-------------------------------------------------------+
| shadow_table | shadow_algorithm_name |
+--------------+-------------------------------------------------------+
| t_order_item | shadow_rule_t_order_item_value_match |
| t_order | sql_hint_algorithm,shadow_rule_t_order_regex_match |
+--------------+-------------------------------------------------------+
2 rows in set (0.00 sec)
SHOW SHADOW TABLE RULES;
mysql> SHOW SHADOW TABLE RULES;
+--------------+-------------------------------------------------------+
| shadow_table | shadow_algorithm_name |
+--------------+-------------------------------------------------------+
| t_order_item | shadow_rule_t_order_item_value_match |
| t_order | sql_hint_algorithm,shadow_rule_t_order_regex_match |
+--------------+-------------------------------------------------------+
2 rows in set (0.01 sec)
SHOW
, SHADOW
, TABLE
, RULES
, FROM