Oracle 常用SQL函数[6]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 blueboy2000 的 blog

把日期四舍五入到月份            round('25-may-95','month')                             01-jun-95
                                                    round('25-may-95 ','year')                                 01-jan-95
把日期截断到月份                    trunc('25-may-95 ','month')                              01-may-95
                                                    trunc('25-may-95 ','year')                                  01-jan-95
 
转换函数
to_char 将数字或日期转换为字符串
to_number 将字符串转换成数字
to_date 将字符串转换成日期

本文关键:Oracle 常用SQL函数
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top