mysql 搜索“No.”不是“不”。或“不”;
有什么方法可以使 mysql 在使用 where x like '%No.%'; 进行搜索时区分大小写?
Is there any way that i can cause mysql to be case sensitive whe searching using where x like '%No.%';
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
试试这个:
Try this:
您可以更改列类型:
编辑
实际上,jwsample的答案更好,因为您不必修改表格。
You could change the column type:
EDIT
Actually, jwsample's answer is better because you don't have to modify the table.
http://web.archive.org/web/20080811231016/http://sqlserver2000.databases.aspfaq.com:80/how-can-i-make-my-sql- querys-case-sensitive.html
http://aspadvice.com/blogs/ssmith/archive/2007/09/30/Case-Sensitive-or-Insensitive-SQL-Query.aspx
http://web.archive.org/web/20080811231016/http://sqlserver2000.databases.aspfaq.com:80/how-can-i-make-my-sql-queries-case-sensitive.html
http://aspadvice.com/blogs/ssmith/archive/2007/09/30/Case-Sensitive-or-Insensitive-SQL-Query.aspx