pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob S. <rslifka@home.com>
To: pgsql-sql@postgresql.org
Subject: Creating timestamps in queries?
Date: Mon, 10 Jul 2000 22:26:38 -0700
Message-ID: <001c01bfeaf8$96812be0$39117118@rct1.bc.wave.home.com> (raw)

Hi all,

I would like to say,

"select * from blah where stamp >= 7 days ago"

...where the "days ago" is calculated at query time; meaning that its not
hardcoded into the query as a date string.  Is this possible?

TIA! =)

- Rob Slifka




view thread (4+ messages)  latest in thread

Message-ID: <001c01bfeaf8$96812be0$39117118@rct1.bc.wave.home.com>
Permalink:  ../001c01bfeaf8$96812be0$39117118@rct1.bc.wave.home.com/
Also on:    postgresql.org/message-id/001c01bfeaf8$96812be0$39117118@rct1.bc.wave.home.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: rslifka@home.com
  Subject: Re: Creating timestamps in queries?
  In-Reply-To: <001c01bfeaf8$96812be0$39117118@rct1.bc.wave.home.com>
  References: <001c01bfeaf8$96812be0$39117118@rct1.bc.wave.home.com>

* 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