摘要:
在计算月份的时候除了add_months,还可用INTERVAL: Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 Connected as xxpo SQL> SQL> SELECT to_char(SYSDATE,'YYYY/MM/DD HH24:MI:SS') now FROM dual; NOW
-------------------
2011/05/20 06:22:00
SQL> SELECT to_char(add_months(SYSDATE,-1), 阅读全文
posted @ 2011-05-20 19:14 xublogs 阅读(279) 评论(0) 推荐(0) 编辑