Ticket #99 (new QA) — at Initial Version
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.
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/global/2008/images/jss/m_logo091125.jpg)