Re: First day of month, last day of month

Поиск
Список
Период
Сортировка
От Frank Bax
Тема Re: First day of month, last day of month
Дата
Msg-id 481085D1.2010807@sympatico.ca
обсуждение исходный текст
Ответ на First day of month, last day of month  ("Nacef LABIDI" <nacef.l@gmail.com>)
Ответы Re: First day of month, last day of month  ("Bart Degryse" <Bart.Degryse@indicator.be>)
Re: First day of month, last day of month  (Frank Bax <fbax@sympatico.ca>)
Список pgsql-sql
Nacef LABIDI wrote:
> is there a better method to retrieve all 
> the rows with dates in the current month.


select * from mytable where extract(month from mydate) = extract(month 
from now()) and extract(year from mydate) = extract(year from now());


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

Предыдущее
От: "Nacef LABIDI"
Дата:
Сообщение: First day of month, last day of month
Следующее
От: "Bart Degryse"
Дата:
Сообщение: Re: First day of month, last day of month