Re: Need beginning and ending date value for a particular week in the year

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Need beginning and ending date value for a particular week in the year
Дата
Msg-id 20090526221928.GL32650@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Need beginning and ending date value for a particular week in the year  (Alban Hertroys <dalroi@solfertje.student.utwente.nl>)
Список pgsql-general
Alban Hertroys wrote:

> I recall using generate_series() and EXTRACT(week FROM ...) to populate
> the table in one pass for several years, but I don't have the exact
> incantation at hand now. I'd have to experiment a bit to get that back
> again, I don't have access to it anymore.

There's something similar in the Wiki:

http://wiki.postgresql.org/wiki/Date_and_Time_dimensions

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Brandon Metcalf
Дата:
Сообщение: Re: quoting values magic
Следующее
От: zxo102 ouyang
Дата:
Сообщение: How to speed up the first-time-searching in pgsql?