Re: format query

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: format query
Дата
Msg-id 422F135B.5040600@familyhealth.com.au
обсуждение исходный текст
Ответ на format query  ("enzo venegas palacios" <enzovenegas@mixmail.com>)
Список pgsql-php
> I am trying to build a query sql that select all rows in my table with a
> spesific month (format timestamp, yyy-mm-dd hh:mm:ss), for example, all of
> january, select * from table where field_date = 01.
> but i don't know the specific query

select * from table where extract(month from field) = 1;

Chris

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

Предыдущее
От: "Todd Lewis"
Дата:
Сообщение: Re: format query
Следующее
От: "Van Ingen, Lane"
Дата:
Сообщение: Can't Get PHP Going on PostgreSQL