From: | "Oliveiros d'Azevedo Cristina" <oliveiros(dot)cristina(at)marktest(dot)pt> |
---|---|
To: | "Kenneth Marshall" <ktm(at)rice(dot)edu>, "Emi Lu" <emilu(at)encs(dot)concordia(dot)ca> |
Cc: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Get days between two dates? |
Date: | 2011-01-31 16:51:05 |
Message-ID: | 26847BFD4C364A2B83F0EF622CB58B46@marktestcr.marktest.pt |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
That's precisely what I think..
:-|
----- Original Message -----
From: "Kenneth Marshall" <ktm(at)rice(dot)edu>
To: "Emi Lu" <emilu(at)encs(dot)concordia(dot)ca>
Cc: <pgsql-sql(at)postgresql(dot)org>
Sent: Monday, January 31, 2011 4:39 PM
Subject: Re: [SQL] Get days between two dates?
> On Mon, Jan 31, 2011 at 10:50:43AM -0500, Emi Lu wrote:
>> Good morning,
>>
>> Is there an existing method to get days between two dates?
>>
>> For example,
>>
>> select '2010-01-01'::date - '1999-10-12'::date
>>
>> Returns how many days.
>>
>> Thank you,
>>
>> --
>> Lu Ying
>>
>
> Didn't you just answer your own question?
>
> Cheers,
> Ken
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
From | Date | Subject | |
---|---|---|---|
Next Message | NEVIN ALEX | 2011-02-01 13:31:08 | TABLE PARTITION |
Previous Message | Emi Lu | 2011-01-31 16:39:32 | Re: how to get row number in select query |