Home > Database > Mysql Tutorial > 让mysql区分大小写的步骤

让mysql区分大小写的步骤

WBOY
Release: 2016-06-07 16:15:54
Original
1373 people have browsed it

让mysql区分大小写的方法 要让mysql查询区分大小写,可以: select * from table_name where binary a like 'a%' select * from table_name where binary a like 'A%' 也可以在建表时,加以标识 create table table_name( a varchar (20) binary )

让mysql区分大小写的方法
要让mysql查询区分大小写,可以:


select  * from  table_name where  binary  a like  'a%'  
select  * from  table_name where  binary  a like  'A%'  



也可以在建表时,加以标识


create  table  table_name( 

     a varchar (20) binary

)

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template