pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rod Taylor <rbt@rbt.ca>
To: Jomon Skariah <jomons@aztec.soft.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Porting from Oracl to Postgres
Date: Fri, 05 Sep 2003 09:57:31 -0400
Message-ID: <1062770250.66151.9.camel@jester> (raw)
In-Reply-To: <F83B457BE363174B8233DE042A1445705BB961@maya.aztec.soft.net>
References: <F83B457BE363174B8233DE042A1445705BB961@maya.aztec.soft.net>

On Fri, 2003-09-05 at 00: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..

Guessing based on the name that it adds a quantity of months to a
timestamp.  How about an SQL Interval?

now() + interval '15 months'

List of functions:
http://www.postgresql.org/docs/7.3/interactive/functions.html

Attachments:

  signature.asc (application/pgp-signature, 186B) download

view thread (4+ messages)  latest in thread

Message-ID: <1062770250.66151.9.camel@jester>
Permalink:  ../1062770250.66151.9.camel@jester/
Also on:    postgresql.org/message-id/1062770250.66151.9.camel@jester

 · 

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: rbt@rbt.ca, jomons@aztec.soft.net
  Subject: Re: Porting from Oracl to Postgres
  In-Reply-To: <1062770250.66151.9.camel@jester>

* 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