下载吧 - 绿色安全的游戏和软件下载中心

软件下载吧

当前位置:软件下载吧 > 技术开发 > 数据库 > postgresql的now()与Oracle的sysdate区别说明

postgresql的now()与Oracle的sysdate区别说明

时间:2024-02-14 10:20作者:下载吧人气:24

postgresql的now()为当前事务开始时间,

而Oracle的sysdate是当前时间。

区别在于事务。

postgresql中的now():
postgres=# begin ;
BEGIN
postgres=# select now();
now
——————————-
2017-03-31 14:28:32.403869+08
(1 row)

postgres=# select now();
now
——————————-
2017-03-31 14:28:32.403869+08
(1 row)

postgres=# select now();
now
——————————-
2017-03-31 14:28:32.403869+08
(1 row)

postgres=# end;
COMMIT

postgres=# select now();
now
——————————-
2017-03-31 14:28:54.917897+08
(1 row)

postgres=#

标签[db:关键字]

相关下载

查看所有评论+

网友评论

网友
您的评论需要经过审核才能显示

热门阅览

最新排行

公众号