- 查询某个字段是否有大写或者小写字母
select id,name from student where binary name regexp '[a-z]';
这个SQL查询在student表中通过正则表达式 '[a-z]' 检测name字段是否包含小写字母。这样的查询常用于数据验证或清理过程,确保数据格式的一致性。
select id,name from student where binary name regexp '[a-z]';
2万+

被折叠的 条评论
为什么被折叠?