本文共 715 字,大约阅读时间需要 2 分钟。
版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明 http://942224632.blogbus.com/logs/182013540.html select sysdate,systimestamp,current_date,current_timestamp from dual; 这条语句返回 系统当前时间的三个版本,也有人这么说 叫做返回系统当前session所在时区的默认时间。 sysdate返回的是系统的时间。 systimestamp也是当前系统的时间戳。 CURRENT_TIMESTAMP 与时区设置有关,返回的秒是系统的,返回的日期和时间是根据时区转换过的。 current_date是对CURRENT_TIMESTAMP准确到秒的四舍五入。 These are features in Oracl9i or later version. CURRENT_TIMESTAMP and CURRENT_DATE give session timestamp/date. SYSTIMESTAMP and SYSDATE give databse date. The two obviously may be in different timezones. 历史上的今天: 【转】ORACLE数据库名词解释 2011-12-16 pctused,pctfree,pctincrease,行迁移&行链接 2011-12-16 【转】oracle-学习笔记-5 2011-12-16 【转】ORACLE基础知识 2011-12-16 【转】oracle修改表增加列删除列修改列 2011-12-16