2009年1月2日
摘要: oracle 日期函数介绍 在oracle中有很多关于日期的函数,如: 1、add_months()用于从一个日期值增加或减少一些月份 date_value:=add_months(date_value,number_of_months) 例: SQL> select add_months(sysdate,12) "Next Year" from dual; Next Year ---... 阅读全文
posted @ 2009-01-02 17:26 AFH 阅读(7338) 评论(0) 推荐(0) 编辑
摘要: select CONVERT(varchar, getdate(), 120 ) 2004-09-12 11:06:08 select replace(replace(replace(CONVERT(varchar, getdate(), 120 ),'-',''),' ',''),':','') 20040912110608 select CONVERT(varchar(12) , ... 阅读全文
posted @ 2009-01-02 16:59 AFH 阅读(937) 评论(0) 推荐(0) 编辑