Re: using between with dates

Поиск
Список
Период
Сортировка
От Geoffrey
Тема Re: using between with dates
Дата
Msg-id 4BD9931B.4020507@serioustechnology.com
обсуждение исходный текст
Ответ на using between with dates  (Geoffrey <lists@serioustechnology.com>)
Список pgsql-general
Geoffrey wrote:
> I'm trying the following:
>
> ship_date between '04/30/2010' AND '04/30/2010' + 14
>
> But this returns:
>
> ERROR:  invalid input syntax for integer: "04/30/2010"
>
> Can I use between with dates?


Got it:

ship_date between '04/30/2010' and timestamp '04/30/2010' + interval '14
day'


--
Until later, Geoffrey

"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson

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

Предыдущее
От: Geoffrey
Дата:
Сообщение: using between with dates
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: using between with dates