how to cast for dates/datetimes?

Поиск
Список
Период
Сортировка
От D. Duccini
Тема how to cast for dates/datetimes?
Дата
Msg-id Pine.GSO.4.03.10008211820550.21654-100000@ra.bpsi.net
обсуждение исходный текст
Список pgsql-novice
how do i get around this?

select sum(total) from lineitemsnext where date <= ('now'::date + '1
month'::timespan);

ERROR:  Unable to identify an operator '<=' for types 'date' and
'datetime'
        You will have to retype this query using an explicit cast



-----------------------------------------------------------------------------
david@backpack.com            BackPack Software, Inc.        www.backpack.com
+1 651.645.7550 voice       "Life is an Adventure.
+1 651.645.9798 fax            Don't forget your BackPack!"
-----------------------------------------------------------------------------


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

Предыдущее
От: doug@dupreeinc.com
Дата:
Сообщение: Re: How to connect applet to different SQL server.
Следующее
От: Dave_Pfaltzgraff@patapsco.com
Дата:
Сообщение: Re: how to cast for dates/datetimes?