X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 84511D1B91B for ; Fri, 5 Sep 2003 13:57:38 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 39847-05 for ; Fri, 5 Sep 2003 10:57:11 -0300 (ADT) Received: from mailav.tor1.inquent.com (mail.inquent.com [216.208.117.106]) by svr1.postgresql.org (Postfix) with ESMTP id 4C241D1BA4C for ; Fri, 5 Sep 2003 10:57:07 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mailav.tor1.inquent.com (Postfix) with ESMTP id 20F5C1024D; Fri, 5 Sep 2003 09:48:59 -0400 (EDT) Received: from [10.0.2.5] (unknown [10.0.2.5]) by mailav.tor1.inquent.com (Postfix) with ESMTP id 3EBC310248; Fri, 5 Sep 2003 09:48:57 -0400 (EDT) Subject: Re: Porting from Oracl to Postgres From: Rod Taylor To: Jomon Skariah Cc: pgsql-sql@postgresql.org In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-c4Ck0kYGusUObEDDXo6U" Message-Id: <1062770250.66151.9.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Fri, 05 Sep 2003 09:57:31 -0400 X-Virus-Scanned: by AMaViS perl-11 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/30 X-Sequence-Number: 15008 --=-c4Ck0kYGusUObEDDXo6U Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2003-09-05 at 00:24, Jomon Skariah wrote: >=20 > Hi, >=20 > Thanks for your replys. >=20 > We are facing another problem now. >=20 > 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 --=-c4Ck0kYGusUObEDDXo6U Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQA/WJZK6DETLow6vwwRAhOPAJ44fkGE3zV9sHCJfU8paZVXjeUbXgCdGu22 +SdzLlWvH2Te24tlgCIVcIo= =WN2J -----END PGP SIGNATURE----- --=-c4Ck0kYGusUObEDDXo6U--