Re: showing records from the last 20 min

From: Matthew Nuzum <cobalt(at)bearfruit(dot)org>
To: Tomasz Myrta <jasiek(at)klaster(dot)net>
Cc: Postgres SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: showing records from the last 20 min
Date: 2003-03-18 18:36:30
Message-ID: 1048012590.1151.116.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)bearfruit(dot)org
www.bearfruit.org

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Guy Fraser 2003-03-18 18:55:10 Re: Convert a text list to text array? Was: Denormalizing during
Previous Message Tomasz Myrta 2003-03-18 18:19:50 Re: showing records from the last 20 min