SHOW SHADOW TABLE RULES
Description
The SHOW SHADOW TABLE RULES
syntax is used to query shadow table rules for specified database.
Syntax
Grammar Railroad diagram
ShowEncryptRule::=
'SHOW' 'SHADOW' 'TABLE' 'RULES' ('FROM' databaseName)?
databaseName ::=
identifier
Supplement
- When
databaseName
is not specified, the default is the currently usedDATABASE
. IfDATABASE
is not used,No database selected
will be prompted.
Return value description
Column | Description |
---|---|
shadow_table | Shadow table |
shadow_algorithm_name | Shadow algorithm name |
Example
- Query shadow table rules for specified database.
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)
- Query shadow table rules for current database.
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)
Reserved word
SHOW
, SHADOW
, TABLE
, RULES
, FROM
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .