pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Jomon Skariah <jomons@aztec.soft.net>
To: pgsql-sql@postgresql.org
Subject: Re: Porting from Oracl to Postgres
Date: Fri, 5 Sep 2003 15:12:04 +0100
Message-ID: <200309051512.04518.dev@archonet.com> (raw)
In-Reply-To: <F83B457BE363174B8233DE042A1445705BB961@maya.aztec.soft.net>
References: <F83B457BE363174B8233DE042A1445705BB961@maya.aztec.soft.net>

On Friday 05 September 2003 05:24, Jomon Skariah wrote:
> Hi,
>
> Thanks for your replys.
>
> We are facing another problem now.
>
> we need to find an alternative for Oracle's ADD_MONTHS in PostGres..

SELECT now() + '1 hour'::interval;
SELECT now() + '2 days'::interval;
SELECT now() + '3 months':: interval;

See the data-types section of the manual for details.

-- 
  Richard Huxton
  Archonet Ltd



view thread (4+ messages)  latest in thread

Message-ID: <200309051512.04518.dev@archonet.com>
Permalink:  ../200309051512.04518.dev@archonet.com/
Also on:    postgresql.org/message-id/200309051512.04518.dev@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, jomons@aztec.soft.net
  Subject: Re: Porting from Oracl to Postgres
  In-Reply-To: <200309051512.04518.dev@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox