From: Diego Gil <diego@adminsa.com>
To: Lennie De Villiers <lenniedg@lando.co.za>
Cc: JDBC Postgresql <pgsql-jdbc@postgresql.org>
Subject: Re: PostGreSQL Date Query?
Date: Thu, 10 Mar 2005 17:44:54 -0300
Message-ID: <1110487494.5163.10.camel@roadwarrior.adminsa.com> (raw)
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA7eJwAxNWM0C1nHgqelJlQsKAAAAQAAAA/2qJuDRRtES178L9Pf40owEAAAAA@lando.co.za>
References: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA7eJwAxNWM0C1nHgqelJlQsKAAAAQAAAA/2qJuDRRtES178L9Pf40owEAAAAA@lando.co.za>
Maybe you have a wrong datestyle format.
Try a query with '01/01/2005' and '01/28/2005' range, in month-day-year
format.
Diego.
El mar, 08-03-2005 a las 23:51 +0200, Lennie De Villiers escribió:
> Hi,
>
>
> I'm using Java together with PostGreSQL database.
>
>
>
> I'm having a problem with a date query, when I write:
>
>
>
> select sRescheduleDate, * from tbl_leads
>
> where sRescheduleDate >= '01/01/2005' AND sRescheduleDate <=
> '28/01/2005'
>
> and bRescheduleCall = true
>
>
>
> the query also return the values for "01/04/2005" where it should only
> return those between that date range.
>
> Anyone can help me.
>
>
>
> Using Java 2 SE 1.4.2, PostGreSQL 8.0
>
>
> Kind Regards,
>
>
>
> Lennie De Villiers
>
>
>
>
>
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: diego@adminsa.com, lenniedg@lando.co.za
Subject: Re: PostGreSQL Date Query?
In-Reply-To: <1110487494.5163.10.camel@roadwarrior.adminsa.com>
References: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA7eJwAxNWM0C1nHgqelJlQsKAAAAQAAAA/2qJuDRRtES178L9Pf40owEAAAAA@lando.co.za> <1110487494.5163.10.camel@roadwarrior.adminsa.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