Age in days

Поиск
Список
Период
Сортировка
От Mark A. Strivens
Тема Age in days
Дата
Msg-id 200509091104.45412.strivens@bcm.edu
обсуждение исходный текст
Ответы Re: Age in days  (Gnanavel S <s.gnanavel@gmail.com>)
Re: Age in days  (Michael Glaesemann <grzm@myrealbox.com>)
Список pgsql-sql
If you need to know the age to the nearest day on the present day
I think you can use something like:

select date_trunc('day',age(now(),dateofbirth)) from people

gives: 

3 years 2 mons 12 days

My questions is, is there any way to convert that figure into an age
expressed as a number days only?

Many thanks

Mark



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

Предыдущее
От: "Bjoern A. Zeeb"
Дата:
Сообщение: user defined type, plpgsql function and NULL
Следующее
От: tgoodair@ca.afilias.info (Tim Goodaire)
Дата:
Сообщение: Re: Performance issue