Re: using between with dates

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Re: using between with dates
Дата
Msg-id v2qbddc86151004290750h992c63c6t99cc031e1ddcb797@mail.gmail.com
обсуждение исходный текст
Ответ на using between with dates  (Geoffrey Myers <geof@serioustechnology.com>)
Список pgsql-general
On 29 April 2010 14:55, Geoffrey Myers <geof@serioustechnology.com> 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?


You need to cast that last date, so:

ship_date between '04/30/2010' AND '04/30/2010'::date + 14

Thom

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

Предыдущее
От: Szymon Guz
Дата:
Сообщение: Re: using between with dates
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: using between with dates