Re: TR: Like and = - Mailing list pgsql-sql

From Dani Oderbolz
Subject Re: TR: Like and =
Date
Msg-id 3EF99322.6090908@ecologic.de
Whole thread Raw
In response to Re: TR: Like and =  ("Nicolas JOUANIN" <n.jouanin@regie-france.com>)
Responses Re: TR: Like and =
List pgsql-sql
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




pgsql-sql by date:

Previous
From: Dani Oderbolz
Date:
Subject: Re: Delete duplicates
Next
From: Josh Berkus
Date:
Subject: Re: Database design - AGAIN