From: Dani Oderbolz <oderbolz@ecologic.de>
To: pgsql-sql@postgresql.org
Subject: Re: TR: Like and =
Date: Wed, 25 Jun 2003 14:18:42 +0200
Message-ID: <3EF99322.6090908@ecologic.de> (raw)
In-Reply-To: <CEEJJOCKHCPFNIOMMIDFKEGLCHAA.n.jouanin@regie-france.com>
References: <CEEJJOCKHCPFNIOMMIDFKEGLCHAA.n.jouanin@regie-france.com>
Nicolas JOUANIN wrote:
>Hi,
>
> Thanks for your help. In fact that means 2 solutions for this:
>
>1) select * from pdi where rtrim(pdi) = '1006666058'
>
>or
>
>2) Use VARCHAR instead of CHAR
>
>I don't which is the best , but both are working.
>
>Nicolas.
>
>
Do you have a specific reason why to use CHAR?
I use CHAR only for certain one-byte flags, and even there its use is
debatable.
I would use VARCHAR; if I was you.
Cheers,
Dani
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: oderbolz@ecologic.de
Subject: Re: TR: Like and =
In-Reply-To: <3EF99322.6090908@ecologic.de>
* 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