Re: showing records from the last 20 min - Mailing list pgsql-sql

From Matthew Nuzum
Subject Re: showing records from the last 20 min
Date
Msg-id 1048012590.1151.116.camel@localhost.localdomain
Whole thread Raw
In response to Re: showing records from the last 20 min  (Tomasz Myrta <jasiek@klaster.net>)
List pgsql-sql
On Tue, 2003-03-18 at 13:19, Tomasz Myrta wrote:
> > I want to show all the records in a table that occurred in the last 20
> > min.
> > 
> > So, maybe something like:
> > select * from sys_logins WHERE tstamp >= now() - '00:20';
> Did you mean:
> select * from sys_logins
> WHERE tstamp >= now()-cast('20:00' as interval);

Yes, I guess I did.  ;-)  Thanks for the help.
-- 
Matthew Nuzum
cobalt@bearfruit.org
www.bearfruit.org



pgsql-sql by date:

Previous
From: Tomasz Myrta
Date:
Subject: Re: showing records from the last 20 min
Next
From: Guy Fraser
Date:
Subject: Re: Convert a text list to text array? Was: Denormalizing during