oracle常用函数

1. lpad(字段名,填充长度,填充的字符)

select lpad(123,7,0) from dual;

2.instr(源字符串, 目标字符串, [起始位置], [匹配序号(第几次出现)])

select instr('hello,world',',',1) from dual;

 

3.substr(字符串,截取开始位置,[截取长度])  --从1开始

select substr('hello,world',7,5) from dual;

to_timestamp(to_char(t.para_settime, 'yyyy-MM-dd HH24:Mi:ss'),
'yyyy-MM-dd HH24:Mi:ss') as para_settime,

原文地址:https://www.cnblogs.com/ahjx1628/p/4425449.html