Selecting between dates

Поиск
Список
Период
Сортировка
От Wim Kerkhoff
Тема Selecting between dates
Дата
Msg-id XFMail.990810145736.wim@netmaster.ca
обсуждение исходный текст
Ответы Re: [GENERAL] Selecting between dates  (Aaron Seigo <aaron@gtv.ca>)
Re: [GENERAL] Selecting between dates  (Simon Drabble <simond@escape.com>)
Список pgsql-general
Hi,

I am creating a script that sends out reminders to subscribers to a site who
have not paid.  I can't figure out the math that will add 7 days to a date.

I want something like this:

select * from company where created
is between (lastpaid + 14 days) and (created + 28 days);

I can't figure out the syntax that will let me add days to a date.  I checked
the archives and the Postgresql doc's, but nothing.

Ideas?

Thanks,

Wim Kerkhoff.

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

Предыдущее
От: Dmitry Morozovsky
Дата:
Сообщение: Re: [GENERAL] ALTER TABLE
Следующее
От: Bill Garrett
Дата:
Сообщение: anomalous, persistent high loads with postgresql 6.5.1