Re: getting weekly total based on daily...

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: getting weekly total based on daily...
Дата
Msg-id 20030127033142.GA23375@wolff.to
обсуждение исходный текст
Ответ на getting weekly total based on daily...  (jerome <jerome@gmanmi.tv>)
Ответы Re: getting weekly total based on daily...  (jerome <jerome@gmanmi.tv>)
Список pgsql-general
On Mon, Jan 27, 2003 at 16:52:50 +0800,
  jerome <jerome@gmanmi.tv> wrote:
> i was wondering is there a built-in funtion that gets the weeknumber based on
> date..

area=> select extract(week from current_date);
 date_part
-----------
         4
(1 row)

This is the ISO week of the year. Week 1 is the week containing the first
Thursday of the year. Weeks go from Monday to Sunday.

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

Предыдущее
От: Robert Boone
Дата:
Сообщение: idea for a backup system...
Следующее
От: Lincoln Yeoh
Дата:
Сообщение: Re: I was spoiled by the MySQL timestamp field