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,

 

posted on 2015-04-14 17:12  天凉好个球  阅读(105)  评论(0编辑  收藏  举报

导航