Re: DateDiff in PostgreSQL

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: DateDiff in PostgreSQL
Дата
Msg-id 1068213347.42603.2.camel@jester
обсуждение исходный текст
Ответ на DateDiff in PostgreSQL  ("George A.J" <jinujosein@yahoo.com>)
Список pgsql-sql
> ie, a function that returns difference of two dates(timestamp) in days
> or months or year..
> 
> The - operator for timestamp retuns the intervel in days only.

rbt=# select extract('days' from current_timestamp -
'2003-01-01'::timestamp);date_part
-----------      310
(1 row)



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

Предыдущее
От: "George A.J"
Дата:
Сообщение: Re: DateDiff in PostgreSQL
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: SQL to PLC to diverter gate, can this be done?