57,064
社区成员
发帖
与我相关
我的任务
分享show variables like 'char%';
create table tx (
id int primary key,
f1 varchar(10)
) CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
insert into tx values (1,'工工');
insert into tx values (2,'aa');
insert into tx values (3,'问题还');
select * from tx;
select * from tx where f1 like '%a%';mysql> select hex(f1) from tx;
+--------------------+
| hex(f1) |
+--------------------+
| E5B7A5E5B7A5 |
| 6161 |
| E997AEE9A298E8BF98 |
+--------------------+
3 rows in set (0.00 sec)