Re: [SQL] parts of date_part()

Поиск
Список
Период
Сортировка
От Brook Milligan
Тема Re: [SQL] parts of date_part()
Дата
Msg-id 199808251720.LAA05553@trillium.nmsu.edu
обсуждение исходный текст
Ответ на parts of date_part()  (Eric McKeown <ericm@palaver.net>)
Список pgsql-sql
   played with some other things, like 'month' and 'year'.  However, I was
   wondering if there was a way to obtain the name of the day (Tuesday,
   Wednesday, etc.) using this function, among other things.  I tried

Try

    select date_part ('dow', field_name) from table ;

This gives numbers 0-6 => Sunday-Saturday (I think).  I suppose that
could be joined with another table with names.

Is there a more direct way to get the names?

Cheers,
Brook

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

Предыдущее
От: Jose David Martinez Cuevas
Дата:
Сообщение: Re: [SQL] copy probs
Следующее
От: Jose David Martinez Cuevas
Дата:
Сообщение: Having problems to compile SPI