而current_date:
CURRENT_DATE returns the current date in the session time zone, in a value in the Gregorian calendar of datatype DATE.

select SESSIONTIMEZONE from dual;
看看是什么?

解决方案 »

  1.   

    很可能前后台session 的TIME_ZONE 不同
      

  2.   

    current_date()返回当前会话时区中的当前日期。
      

  3.   

    我用PL/SQL DEV 执行select SESSIONTIMEZONE from dual 得到+08:00,用前台应用程序执行SQL语句,得到00:00,果然是这个原因,但为什么在同一台机器上不同的程序得到不同的SESSIONTIMEZONE ?这个SESSIONTIMEZONE 是怎么来的?