MySQL如何进行区分大小写的字符串比较?

As we know that MySQL is not case-sensitive while comparing characters but it can be changed i.e. MySQL can perform case-sensitive string comparison if we will use BINARY keyword before the expression. Actually, BINARY keyword instructs MySQL to compare the characters in the string using their underlying ASCII values rather than just their letters. It can be illustrated with the following example from table ‘Employee’ having the following data −,登录后复制,下面的查询将使用BINARY关键字来强制MySQL执行区分大小写的字符串比较。,登录后复制,以上就是MySQL如何进行区分大小写的字符串比较?的详细内容,更多请关注www.92cms.cn其它相关文章!
返回顶部
跳到底部

Copyright 2011-2024 南京追名网络科技有限公司 苏ICP备2023031119号-6 乌徒帮 All Rights Reserved Powered by Z-BlogPHP Theme By open开发

请先 登录 再评论,若不是会员请先 注册