CREATE TABLE user_info ( login_name VARCHAR(20) BINARY );
查询时会自动区分大小写
SELECT `name`,login_name FROM user_info WHERE BINARY login_name=‘liangningning‘;(有结果)
SELECT `name`,login_name FROM user_info WHERE BINARY login_name=‘Liangningning‘;(无结果)
user_info 表
原文:https://www.cnblogs.com/vanoraxnc/p/8995206.html