SHOW SHADOW TABLE RULES
语法用于查询指定逻辑库中的影子表规则。
ShowEncryptRule::=
'SHOW' 'SHADOW' 'TABLE' 'RULES' ('FROM' databaseName)?
databaseName ::=
identifier
databaseName
时,默认是当前使用的 DATABASE
。 如果也未使用 DATABASE
则会提示 No database selected
。列 | 说明 |
---|---|
shadow_table | 影子表 |
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