Skip site navigation (1) Skip section navigation (2)

Re: pgsql DATE

From: Lincoln Yeoh <lylyeoh(at)mecomb(dot)com>
To: "Andras Balogh" <abalogh(at)grafx(dot)ro>, "Martijn van Oosterhout" <kleptog(at)cupid(dot)suninternet(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: pgsql DATE
Date: 2000-04-27 09:28:35
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
At 11:03 AM 27-04-2000 +0300, Andras Balogh wrote:
>Thank You for your reply.
>BUT as i mentioned the date_time field is VARCHAR.
>So if i use:
>date >= '01/4/2000' and date < '01/5/2000'
>this won't compare the dates it will compare Strings.
>so '02/4/2000' will be GREATER than '01/5/2000'.
>That is why i need a DATE TYPE for my field that can be used to create an
>So any other ideas?

If you need a date type for your field, use a date type.


In response to

pgsql-general by date

Next:From: Malcolm BeattieDate: 2000-04-27 09:51:32
Subject: Re: [HACKERS] pgsql/php3/apache authentication
Previous:From: Jan WieckDate: 2000-04-27 09:17:39
Subject: Re: [HACKERS] pgsql/php3/apache authentication

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group