Re: the day before yesterday.

From: "Carl Karsten" <carl(at)personnelware(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: the day before yesterday.
Date: 2001-08-10 19:12:24
Message-ID: OLA5#$cIBHA.460@tkmsftngp05
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)dental(dot)temple(dot)edu> wrote in message
news:9l19vh$9ku$1(at)cronkite(dot)temple(dot)edu(dot)(dot)(dot)
> 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
>
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Allan Engelhardt 2001-08-10 22:32:38 BUG in EXTRACT(MICROSECONDS...)?
Previous Message Jason 2001-08-10 18:44:23 Date: the day before yesterday.