SHOW SHADOW ALGORITHM
语法用于查询指定逻辑库中的影子算法。
ShowEncryptAlgorithm::=
'SHOW' 'SHADOW' 'ALGORITHMS' ('FROM' databaseName)?
databaseName ::=
identifier
databaseName
时,默认是当前使用的 DATABASE
。 如果也未使用 DATABASE
则会提示 No database selected
。列 | 说明 |
---|---|
shadow_algorithm_name | 影子算法名称 |
type | 算法类型 |
props | 算法参数 |
is_default | 是否默认 |
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)
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)
SHOW
、SHADOW
、ALGORITHMS
、FROM