pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: George A.J <jinujosein@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: DateDiff in PostgreSQL
Date: Fri, 7 Nov 2003 05:34:09 -0800 (PST)
Message-ID: <20031107133409.25844.qmail@web14909.mail.yahoo.com> (raw)
In-Reply-To: <Sea2-F69mvu0wXqkv4e00044063@hotmail.com>


Hi,

i am converting a MSSQL Server database to PostgreSQL.

Using PostgreSQL version 7.3.2.

Is there any function like the DateDiff() in MSSQL Server. 

ie, a function that returns difference of two dates(timestamp) in days or months or year..

The - operator for timestamp retuns the intervel in days only.

Please help

jinujose


---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

view thread (6+ messages)  latest in thread

Message-ID: <20031107133409.25844.qmail@web14909.mail.yahoo.com>
Permalink:  ../20031107133409.25844.qmail@web14909.mail.yahoo.com/
Also on:    postgresql.org/message-id/20031107133409.25844.qmail@web14909.mail.yahoo.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: jinujosein@yahoo.com
  Subject: Re: DateDiff in PostgreSQL
  In-Reply-To: <20031107133409.25844.qmail@web14909.mail.yahoo.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