Re: How to convert postgres timestamp to date: yyyy-mm-dd

Поиск
Список
Период
Сортировка
От Vivek Khera
Тема Re: How to convert postgres timestamp to date: yyyy-mm-dd
Дата
Msg-id 986B9CD2-F5CA-48FE-8BE4-4ACE742BD6D2@khera.org
обсуждение исходный текст
Ответ на Re: How to convert postgres timestamp to date: yyyy-mm-dd  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Ответы Re: How to convert postgres timestamp to date: yyyy-mm-dd
Список pgsql-general
On Mar 11, 2008, at 2:50 PM, A. Kretschmer wrote:

>> i.e ... WHERE pt.created_date >=  '2008-01-21'
>
> You can't compare a date or timestamp to a varchar or text. For your
> example, cast the date-string to a real date like:

Since which version of Pg?

Queries like the above have worked for me from 7.3 up thru 8.1, which
is my current production environment.



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

Предыдущее
От: "Gauthier, Dave"
Дата:
Сообщение: Array load from remote site through Perl/DBI
Следующее
От: Justin
Дата:
Сообщение: Re: simple UPDATE statement...