oracle 转换函数的使用


1.日期转换函数

add_months(d,n)

n 为月的倍数 :例如 d=20041116 add_months(to_date(d,'yyyymmdd',1) 结果为 20041216 日

2.数字转换函数
to_number(c,'999,999')
转换字符串为number型

例如: c='158,000' to_number(c,'999,999') =158000

Published At
Categories with 数据库类
comments powered by Disqus