Re: Search problem

From: Julie Hunt <jhunt(at)chac(dot)qld(dot)edu(dot)au>
To: Oscar <oscar(at)sjs(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Search problem
Date: 2000-04-11 23:01:49
Message-ID: 38F3AEDE.978067CD@chac.qld.edu.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Try:-

select * from table where date_field < '10-10-2000'::datetime; (or date if
your date_field is of type date)

Regards
Julie Hunt

Oscar wrote:

> Hi,
>
> I am using apache/php and postgres and I tried a search with dates, but it
> doesn't accept it...
>
> select * from table where date_field < 10-10-2000;
>
> It yells that I cannot use < signs with ints and dates...
>
> Any suggestions ??
>
> Thanks,
> Oscar

In response to

Browse pgsql-general by date

  From Date Subject
Next Message The Hermit Hacker 2000-04-11 23:16:34 SearchEngine ...
Previous Message Julie Hunt 2000-04-11 22:46:32 Re: Importing a comma-delimited text file