From: Matthew Nuzum <cobalt@bearfruit.org>
To: Tomasz Myrta <jasiek@klaster.net>
Cc: Postgres SQL <pgsql-sql@postgresql.org>
Subject: Re: showing records from the last 20 min
Date: 18 Mar 2003 13:36:30 -0500
Message-ID: <1048012590.1151.116.camel@localhost.localdomain> (raw)
In-Reply-To: <3E776346.4030306@klaster.net>
References: <1048010456.1151.105.camel@localhost.localdomain>
<3E776346.4030306@klaster.net>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: cobalt@bearfruit.org, jasiek@klaster.net
Subject: Re: showing records from the last 20 min
In-Reply-To: <1048012590.1151.116.camel@localhost.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox