CREATE TABLE `mytest2` ( `t1` varchar(10) DEFAULT NULL, `t2` varchar(10) DEFAULT NULL, `t3` char(10) DEFAULT NULL, `t4` varchar(10) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=REDUNDANT
mysql> select * from mytest2; +------+------+------+------+ | t1 | t2 | t3 | t4 | +------+------+------+------+ | a | bb | bb | ccc | | d | ee | ee | fff | | d | NULL | NULL | fff | +------+------+------+------+
mysql> select hex(t1),hex(t2),hex(t3),hex(t4) from mytest2; +---------+---------+---------+---------+ | hex(t1) | hex(t2) | hex(t3) | hex(t4) | +---------+---------+---------+---------+ | 61 | 6262 | 6262 | 636363 | | 64 | 6565 | 6565 | 666666 | | 64 | NULL | NULL | 666666 | +---------+---------+---------+---------+ 3 rows in set (0.00 sec)
时间: 2024-11-13 10:54:55