Oracle 大小写转换函数

小写转大写UPPer

大写转小写LOWER

例:

select lower(ename) from emp;  
select upper(ename) from emp;  
 
--是否包含字母(大写和小写) 
select case when regexp_like('123','.([a-z]+|[A-Z])') then '包含字母' else '不包含字母' end from dual; 
 
--是否包含小写字母 
select case when regexp_like('S','[a-z]') then '包含小写字母' else '不包含小字母' end from dual; 
 
--是否包含大写写字母 
select case when regexp_like('行行s行','[A-Z]') then '包含大写字母' else '不包含大字母' end from dual; 
 
--是否包含小写字母 
select '包含小写' from dual where regexp_like('C','[a-z]'); 

 感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

声明:本站(华域联盟www.cnhackhy.com)所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。