Search Postgresql Archives
Selecting rows where timestamp between two timestamps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]
[Postgresql Jobs]
[Postgresql Admin]
[Postgresql Performance]
[Linux Clusters]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[PHP Books]
[PHP Databases]
[Postgresql & PHP]
[Yosemite]