查询mysql表中强制区分大小写

binary:强制区分大小写

regexp:正则匹配

例:查询表users中username字段中存在大写字母的个数

select count(*) from users where binary username regexp '[A-Z]';
原文地址:https://www.cnblogs.com/Wtingting/p/13440999.html