博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
oracle sysdate,current_date,current_timestamp
阅读量:4030 次
发布时间:2019-05-24

本文共 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
你可能感兴趣的文章
[LeetCode By Python]118. Pascal's Triangle
查看>>
[LeetCode By Python]121. Best Time to Buy and Sell Stock
查看>>
[LeetCode By Python]122. Best Time to Buy and Sell Stock II
查看>>
[LeetCode By Python]125. Valid Palindrome
查看>>
[LeetCode By Python]136. Single Number
查看>>
[LeetCode By Python]167. Two Sum II - Input array is sorted
查看>>
[LeetCode BY Python]169. Majority Element
查看>>
[LeetCode By Python]172. Factorial Trailing Zeroes
查看>>
[LeetCode By MYSQL] Combine Two Tables
查看>>
python jieba分词模块的基本用法
查看>>
[CCF BY C++]2017.12 最小差值
查看>>
[CCF BY C++]2017-12 游戏
查看>>
如何打开ipynb文件
查看>>
[Leetcode BY python ]190. Reverse Bits
查看>>
面试---刷牛客算法题
查看>>
Android下调用收发短信邮件等(转载)
查看>>
Android中电池信息(Battery information)的取得
查看>>
SVN客户端命令详解
查看>>
Android/Linux 内存监视
查看>>
Linux系统信息查看
查看>>