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
Re: First day of month, last day of month
Список 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 по дате отправления: