Re: [despammed] How to get day of week?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: [despammed] How to get day of week?
Дата
Msg-id 20041221163208.GA82969@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: [despammed] How to get day of week?  (Andreas Kretschmer <akretschmer@despammed.com>)
Список pgsql-novice
On Tue, Dec 21, 2004 at 01:42:17PM +0100, Andreas Kretschmer wrote:
>
> select extract(dow from eingang) from a_buch ;

See also to_char() in the "Data Type Formatting Functions" section
of the "Functions and Operators" chapter in the documentation.

SELECT to_char(CURRENT_DATE, 'D,Dy,Day');
    to_char
-----------------
 3,Tue,Tuesday

Note that to_char() and extract() use different numbering for the
day of the week.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

Предыдущее
От: Terry Lee Tucker
Дата:
Сообщение: Re: FOUND variable
Следующее
От: "Keith Worthington"
Дата:
Сообщение: syntax error in function