SHOW SHADOW ALGORITHM
Description
The SHOW SHADOW ALGORITHM
syntax is used to query shadow algorithms for specified database.
Syntax
ShowEncryptAlgorithm::=
'SHOW' 'SHADOW' 'ALGORITHMS' ('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_algorithm_name | Shadow algorithm name |
type | Shadow algorithm type |
props | Shadow algorithm properties |
is_default | Default |
Example
- Query shadow algorithms for specified database.
SHOW SHADOW ALGORITHMS FROM test1;
mysql> SHOW SHADOW ALGORITHMS FROM test1;
+-------------------------+-------------+-----------------------------------------+------------+
| shadow_algorithm_name | type | props | is_default |
+-------------------------+-------------+-----------------------------------------+------------+
| user_id_match_algorithm | VALUE_MATCH | column=user_id,operation=insert,value=1 | false |
+-------------------------+-------------+-----------------------------------------+------------+
1 row in set (0.00 sec)
- Query shadow algorithms for current database.
SHOW SHADOW ALGORITHMS;
mysql> SHOW SHADOW ALGORITHMS;
+-------------------------+-------------+-----------------------------------------+------------+
| shadow_algorithm_name | type | props | is_default |
+-------------------------+-------------+-----------------------------------------+------------+
| user_id_match_algorithm | VALUE_MATCH | column=user_id,operation=insert,value=1 | false |
+-------------------------+-------------+-----------------------------------------+------------+
1 row in set (0.00 sec)
Reserved word
SHOW
, SHADOW
, ALGORITHMS
, FROM
Related links
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .