字符函数
|---转小写 转大写 首字母大写
select lower('hellO WORld') 转小写,upper('hellO WORld') 转大写,initcap('hello world') 首字母大写2 from dual;
|---截取
substr(a,b) 从a中,第b位开始取,取右边所有的字符
substr(a,b,c) 从a中,第b位开始取,取c位
|---length 字符数 lengthb 字节数
|---instr 在母串中查找子串,找到返回下标(从1开始),否则返回0
|---lpad 左填充 rpad 右填充
|---trim 去掉前后指定的字符
|---数字函数
|---日期函数
|---时间戳
|---员工工龄
|---计算工龄:MONTHS_BETWEEN