Re: Date: the day before yesterday. - Mailing list pgsql-sql

From Jan Wieck
Subject Re: Date: the day before yesterday.
Date
Msg-id 200108142013.f7EKDDD18907@jupiter.us.greatbridge.com
Whole thread Raw
In response to Date: the day before yesterday.  ("Jason" <jzhu@dental.temple.edu>)
List pgsql-sql
Jason wrote:
> 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?
   Try harder.

> Thanks!
   You're welcome.


Jan

PS: What about ('now'::date - 2) ?


--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



pgsql-sql by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Deadlocks? What happened to MVCC?
Next
From: Randall Skelton
Date:
Subject: psql connection being reset during function?