Re: query

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: query
Дата
Msg-id 20050321151735.GA20261@wolff.to
обсуждение исходный текст
Ответ на Re: query  (Thomas F.O'Connell <tfo@sitening.com>)
Список pgsql-sql
On Mon, Mar 21, 2005 at 08:33:43 -0600, "Thomas F.O'Connell" <tfo@sitening.com> wrote:
> You should be able to use the CURRENT_DATE function in place of sysdate.
> 
> You might need to cast the 1 explicitly to an interval.
> 
> As in:
> 
> CURRENT_DATE - '1 day'::interval

I don't think you want that. That is going to force a conversion from date
to a timestamp. You are going to be better off just using:
current_date - 1


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

Предыдущее
От: Martín Marqués
Дата:
Сообщение: Re: CASE not working
Следующее
От: "Thomas Borg Salling"
Дата:
Сообщение: "Flattening" query result into columns