求教关于MYSQL MD5函数的问题
展开全部
#操作系统版本
mysql> system uname -a
Linux robin.host.com 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
#数据库版本
mysql> SELECT VERSION();
+------------+
| VERSION() |
+------------+
| 5.5.29-log |
+------------+
1 row in set (0.00 sec)
#对TEST进行MD5加密
mysql> SELECT MD5('TEST') AS `MD5`;
+----------------------------------+
| MD5 |
+----------------------------------+
| 033bd94b1168d7e4f0d644c3c95e35bf |
+----------------------------------+
1 row in set (0.00 sec)
#查询长度
mysql> mysql> SELECT length(MD5('TEST')) AS `LEN`;
+-----+
| LEN |
+-----+
| 32 |
+-----+
1 row in set (0.08 sec)
mysql> system uname -a
Linux robin.host.com 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
#数据库版本
mysql> SELECT VERSION();
+------------+
| VERSION() |
+------------+
| 5.5.29-log |
+------------+
1 row in set (0.00 sec)
#对TEST进行MD5加密
mysql> SELECT MD5('TEST') AS `MD5`;
+----------------------------------+
| MD5 |
+----------------------------------+
| 033bd94b1168d7e4f0d644c3c95e35bf |
+----------------------------------+
1 row in set (0.00 sec)
#查询长度
mysql> mysql> SELECT length(MD5('TEST')) AS `LEN`;
+-----+
| LEN |
+-----+
| 32 |
+-----+
1 row in set (0.08 sec)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询