Sql不区分大小写查询

时间:2022-03-20 19:14:00

select a.* from Pair_User  a where 1=1   and   UPPER(a.UserID) like 'EMH1001%' collate Chinese_PRC_CI_AS_WS  and a.UserPassWord=123

_BIN 二进制排序  
  _CI(CS) 是否区分大小写,CI不区分,

CS区分   _AI(AS) 是否区分重音,AI不区分,

AS区分      _KI(KS) 是否区分假名类型,KI不区分,

KS区分       _WI(WS) 是否区分宽度 WI不区分,

WS区分