oracle 常用函数记录

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ROUND() 函数 :用于把数值字段舍入为指定的小数位数。

to_char()函数:转化数字型指定小数点位数的用法/* to_char(0.1,'fm9999990.00') */ 格式化

to_number()

to_date('2012-08-31','yyyy-mm-dd')


TRUNC(number,[num_digits])
TRUNC 函数语法具有下列参数:
Number 必需。需要截尾取整的数字。
Num_digits 可选。用于指定取整精度的数字。
Num_digits 的默认值为 0(零)


trim() 去首尾空字符串