Home > Database > Mysql Tutorial > mysql查询区分大小sql语句

mysql查询区分大小sql语句

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:36:31
Original
1488 people have browsed it

公司网站有需求对用户名验证要验证大小写。其实刚开始他注册的时候就就都是大小写,所以没有必要做大小写验证了。但是现在要登陆的验证大小写,那在注册的时候也要对此进行验证。 SELECT * FROM ?·www9696ecom·WHERE binary `user`=www.9696e.com 主要关键

公司网站有需求对用户名验证要验证大小写。其实刚开始他注册的时候就就都是大小写,所以没有必要做大小写验证了。但是现在要登陆的验证大小写,那在注册的时候也要对此进行验证。
SELECT * FROM ?·www9696ecom·WHERE binary `user`=’www.9696e.com’

主要关键字binary 有它你就可以区分大小写了。

create ?table ?www9696ecom (?name varchar (20) binary ?);

如果哪些字段需要区分大小写在在设计表的就可以这样写。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template