Re: How to find out the weekday from a date???

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to find out the weekday from a date???
Дата
Msg-id 25639.995390711@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How to find out the weekday from a date???  (Jose Manuel Lorenzo Lopez <jose-manuel.lorenzo-lopez@ica.conti.de>)
Список pgsql-general
Jose Manuel Lorenzo Lopez <jose-manuel.lorenzo-lopez@ica.conti.de> writes:
> I am using Postgresql 7.0.3!

Support for 'dow' in extract() is new in PG 7.1.  Time to update.

Or use the underlying date_part function:

play=> select date_part('dow', now());
 date_part
-----------
         2
(1 row)

seems to work fine in 7.0 as well as 7.1.

            regards, tom lane

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

Предыдущее
От: will trillich
Дата:
Сообщение: psql -l
Следующее
От: "Stephan Szabo"
Дата:
Сообщение: Re: VACUUM ANALYZE