show create table t;
+-------+-------------------------------------------------------------------------------------+
| Table | Create Table |
+-------+-------------------------------------------------------------------------------------+
| t | CREATE TABLE `t` (
`c` binary(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+-------+-------------------------------------------------------------------------------------+insert into t set c=hex('juhua');
Query OK, 1 row affected select c,unhex(c) from t;
+--------------------------------+----------+
| c | unhex(c) |
+--------------------------------+----------+
| {114锛?24}
| 616263
| 6A75687561
| NULL | NULL |
+--------------------------------+----------+请教如何将数据库字段c的值,unhex表示出来。
+-------+-------------------------------------------------------------------------------------+
| Table | Create Table |
+-------+-------------------------------------------------------------------------------------+
| t | CREATE TABLE `t` (
`c` binary(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
+-------+-------------------------------------------------------------------------------------+insert into t set c=hex('juhua');
Query OK, 1 row affected select c,unhex(c) from t;
+--------------------------------+----------+
| c | unhex(c) |
+--------------------------------+----------+
| {114锛?24}
| 616263
| 6A75687561
| NULL | NULL |
+--------------------------------+----------+请教如何将数据库字段c的值,unhex表示出来。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货