Re: Auto Adjust Age

Поиск
Список
Период
Сортировка
От Carlos Mennens
Тема Re: Auto Adjust Age
Дата
Msg-id BANLkTimOoau7P5bV=x8JBR3yPA6CacjHgA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Auto Adjust Age  (JC de Villa <jc.devilla@gmail.com>)
Список pgsql-general
On Wed, Apr 6, 2011 at 11:24 AM, JC de Villa <jc.devilla@gmail.com> wrote:
> Theres also the age() function....
>
> SELECT age(dob);
>
> Should give you
>
>           age
> -------------------------
>  31 years 5 mons 17 days
>
> If you want to be really exact about it. :)

That worked awesome too!

ide=# SELECT age(dob) FROM users;
           age
--------------------------
 31 years 10 mons 12 days
(1 row)

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Why security-definer functions are executable by public by default?
Следующее
От: Christine Penner
Дата:
Сообщение: adding years to a date field