MySQL Tutorial/Encryption Compression Functions/ENCODE — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 12:51, 26 мая 2010
ENCODE(str,pass_str) (Encrypt str using pass_str as the password.)
To decrypt the result, use DECODE().
<source lang="sql">
mysql> mysql> select decode(encode("text","password"),"password"); +----------------------------------------------+ | decode(encode("text","password"),"password") | +----------------------------------------------+ | text | +----------------------------------------------+ 1 row in set (0.00 sec) mysql> mysql></source>