From: Michael Glaesemann <grzm@seespotcode.net>
To: Tena Sakai <tsakai@gallo.ucsf.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: what's wrong with my date comparison?
Date: Tue, 16 Oct 2007 13:09:03 -0500
Message-ID: <3DA72981-52FC-4044-A24A-D513FF3947DE@seespotcode.net> (raw)
In-Reply-To: <FE44E0D7EAD2ED4BB2165071DB8E328C03062CEA@egcrc-ex01.egcrc.org>
References: <FE44E0D7EAD2ED4BB2165071DB8E328C03062CEA@egcrc-ex01.egcrc.org>
On Oct 16, 2007, at 12:57 , Tena Sakai wrote:
> select name, value, datecreated
> from mytable
> where datecreated > 2007-10-02;
where datecreated > '2007-10-02'
2007-10-02 = 1995.
# select current_date < 2007-10-31 as arithmetic_comparison,
current_date < '2007-10-31' as date_comparison;
arithmetic_comparison | date_comparison
-----------------------+-----------------
f | t
(1 row)
Michael Glaesemann
grzm seespotcode net
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: grzm@seespotcode.net, tsakai@gallo.ucsf.edu
Subject: Re: what's wrong with my date comparison?
In-Reply-To: <3DA72981-52FC-4044-A24A-D513FF3947DE@seespotcode.net>
* 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