美文网首页
mysql的decode函数

mysql的decode函数

作者: 雨中的单车 | 来源:发表于2022-07-07 12:04 被阅读0次

mysql的decode函数与oracle的decode函数是不一样的,mysql的decode函数是解密函数,与之对应的是encode函数。
encode加密函数
decode解密函数
select encode('ddss','123');第一个参数为加密字符串、第二个参数为加密密码
MySQL 5.7中不推荐使用encode、decode函数,会在后续版本中删除,不再使用。
mysql中执行help encode或? functions,查看帮助信息。

相关文章

网友评论

      本文标题:mysql的decode函数

      本文链接:https://www.haomeiwen.com/subject/hdxpbrtx.html