pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Carl Karsten <carl@personnelware.com>
To: pgsql-sql@postgresql.org
Subject: Re: the day before yesterday.
Date: Fri, 10 Aug 2001 14:12:24 -0500
Message-ID: <OLA5#$cIBHA.460@tkmsftngp05> (raw)
References: <9l19vh$9ku$1@cronkite.temple.edu>

I am not sure if this will work with Oracle.  I would like to know, so if
you could try out this test :
http://www.foxforum.com/showfullmessage.cfm?messageID=12382

If it does work, then you should be able to do this:

ldDby = date()-2
lnRet = sqlexec( h, "select * from Table where InputDate>=?ldDby" )

Carl Karsten

"Jason" <jzhu@dental.temple.edu> wrote in message
news:9l19vh$9ku$1@cronkite.temple.edu...
> I am trying to retrieve records generated in the passed two days and
> encountered difficulties in dealing with the date in Oracle.
> Here is the query I try to form:
>
> select * from Table where InputDate>=[the day before yesterday]
>
> I tried "sysdate-2", didn't work.
> Any suggestions?
> Thanks!
>
> Jason
>
>
>





Message-ID: <OLA5#$cIBHA.460@tkmsftngp05>
Permalink:  ../OLA5%23$cIBHA.460@tkmsftngp05/
Also on:    postgresql.org/message-id/OLA5#$cIBHA.460@tkmsftngp05

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: carl@personnelware.com
  Subject: Re: the day before yesterday.
  In-Reply-To: <OLA5#$cIBHA.460@tkmsftngp05>

* 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