RE: Find all the dates in the calendar week?

Поиск
Список
Период
Сортировка
От Andrew Snow
Тема RE: Find all the dates in the calendar week?
Дата
Msg-id NHEALMDKDACEIPBNOOOCAEPOCGAA.als@fl.net.au
обсуждение исходный текст
Ответ на RE: Find all the dates in the calendar week?  ("Andrew Snow" <als@fl.net.au>)
Список pgsql-general
> SELECT event FROM events WHERE to_char(CURRENT_TIMESTAMP, 'ww') =
> to_char(eventdate, 'ww');

Actually, you will probably want to add something in to make sure the year
is the one you want, too!


- Andrew




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

Предыдущее
От: Stephane Bortzmeyer
Дата:
Сообщение: Re: Find all the dates in the calendar week?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL & the BSD License