Re: Extract date portion of a datetime field

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Extract date portion of a datetime field
Дата
Msg-id 28855.1524060244@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Extract date portion of a datetime field  (JORGE MALDONADO <jorgemal1960@gmail.com>)
Список pgsql-novice
JORGE MALDONADO <jorgemal1960@gmail.com> writes:
> I have a table with a datetime field which saves (of course) date and time
> information. I need to design a query to count the number of records of
> each date without taking into account the time portion. I have seen that I
> can use functions like EXTRACT but I do not find how to extract the whole
> date only.

Cast to date?

            regards, tom lane


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

Предыдущее
От: JORGE MALDONADO
Дата:
Сообщение: Extract date portion of a datetime field
Следующее
От: Scott Ford
Дата:
Сообщение: Re: Extract date portion of a datetime field