ITPUB??ì3
12月微软Hyper-V虚拟化沙龙主题征集
ITPUB论坛 » MySQL及其它开源数据库 » MySQL中的text字段不区分字母大小写,怎么解决?

标题: MySQL中的text字段不区分字母大小写,怎么解决?
离线 kider
一般会员



精华贴数 0
个人空间 0
技术积分 132 (13552)
社区积分 0 (115397)
注册日期 2004-5-11
论坛徽章:0
      
      

发表于 2004-8-23 17:39 
MySQL中的text字段不区分字母大小写,怎么解决?

如果在text字段中查找abc  (...  where  field like '%abc%')
那么abc、ABC的内容都会出来

请教高手门,这个问题怎么解决啊?


只看该作者    顶部
离线 ocptobe
资深会员



精华贴数 0
个人空间 0
技术积分 1790 (943)
社区积分 66 (4326)
注册日期 2002-3-4
论坛徽章:3
管理团队2006纪念徽章会员2006贡献徽章授权会员   
      

发表于 2004-8-23 18:11 
use binary char:
where field like binary '%abc%'
or change the field to binary char type


__________________
To the world you may be one person,but to one person you may be the world.
只看该作者    顶部
 
    

相关内容


CopyRight 1999-2006 itpub.net All Right Reserved.
北京皓辰广域网络信息技术有限公司. 版权所有
E-mail:Webmaster@itpub.net
京ICP证:010037号 联系我们 法律顾问