Querying now()

Поиск
Список
Период
Сортировка
От A Gilmore
Тема Querying now()
Дата
Msg-id 41C61759.6070406@shaw.ca
обсуждение исходный текст
Ответы Re: Querying now()
Re: Querying now()
Список pgsql-novice
Hello,

I have a problem I feel Im going about the wrong way but after reading
over the date/time data types documentation a few times Im still unsure
of how to do this.

Id like my application to do something like this :

SELECT now() AS currentTime WHERE currentTime < '$timestamp';

So if it returns a row Id know $timestamp is not in the past.  However
when you run this it simply says 'ERROR:  column "currentTime" does not
exist'.

Could someone offer some insight as to the correct way to accomplish this?

Thank you.
A Gilmore

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

Предыдущее
От: John DeSoi
Дата:
Сообщение: Re: Front end?
Следующее
От: "M. Bastin"
Дата:
Сообщение: Re: Front end?