Selecting rows where timestamp between two timestamps

Поиск
Список
Период
Сортировка
От Jeff Lanzarotta
Тема Selecting rows where timestamp between two timestamps
Дата
Msg-id 814099.51287.qm@web36814.mail.mud.yahoo.com
обсуждение исходный текст
Ответы Re: Selecting rows where timestamp between two timestamps
Список pgsql-general
Hello,

I am trying to get this query to work with no luck...


select * from foobar where ts between now() and now() - interval '5 days'


btw, the column ts is defined as:

ts timestamp with time zone NOT NULL DEFAULT now()

No rows are returned, but I know there are at least 100 rows that should be returned...

Any ideas?

Thanks.


-Jeff

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