Re: EASY QUESTION!!

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: EASY QUESTION!!
Дата
Msg-id 200304301341.35146.josh@agliodbs.com
обсуждение исходный текст
Ответ на EASY QUESTION!!  (dvsangel@dodo.com.au (dvsangel))
Список pgsql-sql
DVS,

> a column in one of my tables contains dates in the format yyyy-mm-dd
> From these dates I need to find out which dates are sundays.
> can anyone help me????
> PLEASE???

SELECT extract(dow from <date field>)

I believe that 0 is sunday.

--
-Josh BerkusAglio Database SolutionsSan Francisco



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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Stored Procedure Question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PERFORM / FOUND, what's up?