Re: Days in month query

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Days in month query
Дата
Msg-id 20050331172218.GA9042@wolff.to
обсуждение исходный текст
Ответ на Re: Days in month query  (Mark Fox <mark.fox@gmail.com>)
Список pgsql-general
On Wed, Mar 30, 2005 at 16:45:43 -0700,
  Mark Fox <mark.fox@gmail.com> wrote:
>
> What I want is SELECT statement that references no tables but returns
> the days in a given month.   I'm now thinking that I might be able to
> come up with something using an IN clause and using EXTRACT, but
> haven't figured it out yet.

You can use the output of the suggested functions as input to
generate_series functions (new in 8.0) and add their output to the
start date of a month, to get a set of dates (as opposed to just a first
and last day of month).

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

Предыдущее
От: "Bob Powell"
Дата:
Сообщение: storing files in postgres
Следующее
От: "Joseph M. Day"
Дата:
Сообщение: Re: Temporary Tables