[Oracle]单行字符函数

  • 单行函数每行处理一个值

  • 多行函数,多行聚合一个值

函数名称 作用
lower 小写
upper 大写
initcap 首字母大写
concat('Hello','Oracle') 字符串拼接(只能拼接2个字符串)
substr('String',1,3) str从第一位截取3位数
intstr('t#i#m#r#a#n','#',3) 从第三位起找#绝对位置
length() 字符串长度
lpad(’first‘,10,'$') 左填充
rpad('last',10,'*') 右填充
replace('JACK and JUE','J','BL') 替换
trim('m' from 'mmtimranm') 左右两边删除

END

原文地址:https://www.cnblogs.com/leoshi/p/12551710.html