pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <JanWieck@Yahoo.com>
To: Jason <jzhu@dental.temple.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: Date: the day before yesterday.
Date: Tue, 14 Aug 2001 16:13:13 -0400 (EDT)
Message-ID: <200108142013.f7EKDDD18907@jupiter.us.greatbridge.com> (raw)
In-Reply-To: <9l19vh$9ku$1@cronkite.temple.edu>

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




view thread (2+ messages)

Message-ID: <200108142013.f7EKDDD18907@jupiter.us.greatbridge.com>
Permalink:  ../200108142013.f7EKDDD18907@jupiter.us.greatbridge.com/
Also on:    postgresql.org/message-id/200108142013.f7EKDDD18907@jupiter.us.greatbridge.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: JanWieck@Yahoo.com, jzhu@dental.temple.edu
  Subject: Re: Date: the day before yesterday.
  In-Reply-To: <200108142013.f7EKDDD18907@jupiter.us.greatbridge.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