Re: DateDiff in PostgreSQL

Поиск
Список
Период
Сортировка
От George A.J
Тема Re: DateDiff in PostgreSQL
Дата
Msg-id 20031107135335.29716.qmail@web14909.mail.yahoo.com
обсуждение исходный текст
Ответ на DateDiff in PostgreSQL  ("George A.J" <jinujosein@yahoo.com>)
Список pgsql-sql


Yasir Malik <ymalik@heineken.cs.stevens-tech.edu> wrote:

>You can use the age() function to find the difference between dates, and
>use the extract() function to get the years, months, days, etc.
>Yasir

this will not work because age('25/12/1975','30/01/1986')
wil return '10 year 1 month 5 days'

extract only returns years -10, moths-1, days-5.

this is not i want.Actual month  difference between the dates are 121 months.

jinu jose

 


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

В списке pgsql-sql по дате отправления:

Предыдущее
От: Tomasz Myrta
Дата:
Сообщение: Re: DateDiff in PostgreSQL
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: DateDiff in PostgreSQL