SHOW DEFAULT SHADOW ALGORITHM
语法用于查询指定逻辑库中的默认影子算法。
ShowDefaultShadowAlgorithm::=
'SHOW' 'DEFAULT' 'SHADOW' 'ALGORITHM' ('FROM' databaseName)?
databaseName ::=
identifier
databaseName
时,默认是当前使用的 DATABASE
。 如果也未使用 DATABASE
则会提示 No database selected
。列 | 说明 |
---|---|
shadow_algorithm_name | 影子算法名称 |
type | 算法类型 |
props | 算法参数 |
SHOW DEFAULT SHADOW ALGORITHM FROM shadow_db;
mysql> SHOW DEFAULT SHADOW ALGORITHM FROM shadow_db;
+-------------------------+-------------+-----------------------------------------+
| shadow_algorithm_name | type | props |
+-------------------------+-------------+-----------------------------------------+
| user_id_match_algorithm | VALUE_MATCH | column=user_id,operation=insert,value=1 |
+-------------------------+-------------+-----------------------------------------+
1 row in set (0.00 sec)
SHOW DEFAULT SHADOW ALGORITHM;
mysql> SHOW DEFAULT SHADOW ALGORITHM;
+-------------------------+-------------+-----------------------------------------+
| shadow_algorithm_name | type | props |
+-------------------------+-------------+-----------------------------------------+
| user_id_match_algorithm | VALUE_MATCH | column=user_id,operation=insert,value=1 |
+-------------------------+-------------+-----------------------------------------+
1 row in set (0.00 sec)
SHOW
、DEFAULT
、SHADOW
、ALGORITHM
、FROM