mysql Like查询默认是不区分大小写的:
如:
select * from table t where t.colum1 like concat('%','a','%');
select * from table t where t.colum1 like concat('%','A','%');
如果必要区分的话可以这样:
select * from table t where binary t.colum1 like concat('%','A','%');
create table t{
code varchar(10) binary
}