Heim >Datenbank >MySQL-Tutorial >让mysql区分大小写的步骤

让mysql区分大小写的步骤

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 16:15:541394Durchsuche

让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

)

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn