Oracle培训教程:单行字符函数语句用法
最新学讯:近期OCP认证正在报名中,因考试人员较多请尽快报名获取最近考试时间,报名费用请联系在线老师,甲骨文官方认证,报名从速!
我要咨询Oracle培训教程:单行字符函数语句用法
Upper
SELECT Upper ('abcde') FROM dual ;
SELECT * FROM emp WHERE ename=UPPER('smith') ;
Lower
SELECT lower('ABCDE') FROM dual ;
Initcap
Select initcap(ename) from emp;
Concat
Select concat("a","b") from dual; Select "a" || "b" from dual;
Substr
Select substr("abcde",length("abcde")-2) from dual; Select substr("abcde",-3,3) from dual;
Length
Select length(ename) from emp;
Replace
Select replace(ename,"a","A") from emp;
Instr
Select instr('Hello World','or') from dual; 8 indexof
Lpad
lpad('Smith',10,'*') 左侧填充 lpad() *****Smith
Rpad
rpad('Smith',10,'*') 右侧填充 rpad()Smith*****
Trim
trim(' Mr Smith ') 过滤首尾空格 trim() Mr Smith