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

Поиск
Список
Период
Сортировка
От Jose Manuel Lorenzo Lopez
Тема How to find out the weekday from a date???
Дата
Msg-id 200107171422.f6HEMrF10316@cmplant.conti.de
обсуждение исходный текст
Ответы Re: How to find out the weekday from a date???
RE: How to find out the weekday from a date???
Список pgsql-general
Hello PG's,

I want to extract the weekday of a given 'date' type field in my table
when selecting. How can I do this?

For example in a table "bschft_days" filled with values with type 'date'

I want to select all the days within the month 'march' and output the respective
weekday. I tryed this:

select extract(dow from timestamp(day)), day, userid from bschft_days where date_part('month', day) = '3';

But it only tells me:

ERROR:  parser: parse error at or near "dow"

:(

Any ideas??

Thanks a lot in advance!

Best Regards / Mit freundlichen Grüßen / Un saludo

José Manuel lorenzo López




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

Предыдущее
От: "Robert Treat"
Дата:
Сообщение: trouble with triggers
Следующее
От: ryan.a.roemmich@mail.sprint.com
Дата:
Сообщение: Postmaster won't start.