2013年8月10日

Oracle trunc函数

摘要: --Oracle trunc()函数的用法/**************日期********************/1.select trunc(sysdate) from dual--2011-3-18 今天的日期为2011-3-182.select trunc(sysdate, 'mm') from dual--2011-3-1 返回当月第一天.3.select trunc(sysdate,'yy') from dual --2011-1-1 返回当年第一天4.select trunc(sysdate,'dd') from dual --2 阅读全文

posted @ 2013-08-10 16:32 newmanzhang 阅读(359) 评论(0) 推荐(0) 编辑

导航