Re: if else query help

Поиск
Список
Период
Сортировка
От John McKown
Тема Re: if else query help
Дата
Msg-id Pine.LNX.4.21.0010121335580.11424-100000@linux2.johnmckown.net
обсуждение исходный текст
Ответ на Re: if else query help  (Jean-Christophe Boggio <cat@thefreecat.org>)
Список pgsql-sql
On Thu, 12 Oct 2000, Jean-Christophe Boggio wrote:

<snip>
> portion of the day (although I don't know --yet-- how to convert
> date2-date1 to an integer, trunc does not work).


reltime(date2-date1)::int

Will subtract date1 from date2, then cast it to an integer.

John



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

Предыдущее
От: Jie Liang
Дата:
Сообщение: Re: Standard syntax?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Standard syntax?