Ticket #99 (new QA) — at Initial Version

Opened 14 years ago

Last modified 14 years ago

oracle的sysdate转pg的now()的一些过程

Reported by: liaojunqiang Owned by:
Priority: trivial Milestone: 2012年6.0版本
Component: 系统相关 Version: 6.0
Keywords: now(),sysdate,数据库迁移 Cc:
Due Date: 12/04/2012

Description

oracle:
select sysdate from dual;
pg:
select now();

oracle:
sysdate - 30/24/60
这个代表现在时间减30分,sysdate - 30/24这个就是30个小时,其他的,你懂的。
pg:
now()::timestamp + '-30 min'

除了这两个其他都可以放心的直接替换,这个只是指商城喔。

Note: See TracTickets for help on using tickets.