2007年4月6日

oracle日期处理完全版(三)

摘要: 15. 找出今年的天数 select add_months(trunc(sysdate,'year'), 12) - trunc(sysdate,'year') from dual 闰年的处理方法 to_char( last_day( to_date('02' || :year,'mmyyyy') ), 'dd' ) 如果是28就不是闰年 16. yyyy与rrrr的区别 'YYYY99 TO_C... 阅读全文

posted @ 2007-04-06 09:37 Leetle 阅读(257) 评论(0) 推荐(0) 编辑

oracle日期处理完全版(二)

摘要: . select count(*) from ( select rownum-1 rnum from all_objects where rownum select sysdate ,to_char(sysdate,'hh') from dual; SYSDATE TO_CHAR(SYSDATE,'HH') -------------------- --------------------- 2... 阅读全文

posted @ 2007-04-06 09:36 Leetle 阅读(168) 评论(0) 推荐(0) 编辑

oracle日期处理完全版(一)

摘要: TO_DATE格式 Day: dd number 12 dy abbreviated fri day spelled out friday ddspth spelled out, ordinal twelfth Month: mm number 03 mon abbreviated mar month spelled out march Year: yy two digits 98 yyyy fo... 阅读全文

posted @ 2007-04-06 09:35 Leetle 阅读(331) 评论(0) 推荐(0) 编辑

导航