Re: Date Time Function / Age

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Date Time Function / Age
Дата
Msg-id 20225.1062084357@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Date Time Function / Age  (Alex <alex@meerkatsoft.com>)
Список pgsql-general
Alex <alex@meerkatsoft.com> writes:
> is there an easy way to get the Difference between 2 dates in Days... as
> an integer?

Subtract 'em ...

regression=# select '2002-01-01'::date - '2001-01-01'::date;
 ?column?
----------
      365
(1 row)


            regards, tom lane

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

Предыдущее
От: "Ivar"
Дата:
Сообщение: Re: Functions have 32 args limt ???
Следующее
От: "Ivar"
Дата:
Сообщение: Re: Functions have 32 args limt ???