current_timestamp - 20 minutes

Поиск
Список
Период
Сортировка
От Matthew Terenzio
Тема current_timestamp - 20 minutes
Дата
Msg-id df560b89977868913d4ddd9365c8191f@jobsforge.com
обсуждение исходный текст
Ответы Re: current_timestamp - 20 minutes  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-general

I 'm storing things in a table with now() and I want to select * from
theTable WHERE the Timestamp is > the current time - 20 minutes

Anyone know the correct syntax. I was trying something like:

WHERE timestamp_field > (timestamp now() - interval '20 minutes')

and will continue reading the manual


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

Предыдущее
От: Stuart Bishop
Дата:
Сообщение: Re: PL/pgGRESQL, SHA, BYTEA - Creating SHA1 hash for Bytea
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: current_timestamp - 20 minutes