DECODE-Mysql

by Mohan 2012-09-21 09:42:42

DECODE(crypt_str,pass_str) decrypts the encrypted string crypt_str using pass_str.

crypt_str should be a string returned from ENCODE().
mysql>
mysql> select decode(encode("text","password"),"password");
+----------------------------------------------+
| decode(encode("text","password"),"password") |
+----------------------------------------------+
| text |
+----------------------------------------------+
1 row in set (0.00 sec)

mysql>
1025
like
0
dislike
0
mail
flag

You must LOGIN to add comments