Re: TR: Like and =

From: Dani Oderbolz <oderbolz(at)ecologic(dot)de>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: TR: Like and =
Date: 2003-06-25 12:18:42
Message-ID: 3EF99322.6090908@ecologic.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Pflug 2003-06-25 12:24:49 Re: allowed user/db variables
Previous Message Jan Wieck 2003-06-25 12:17:21 Re: Two weeks to feature freeze

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2003-06-25 19:21:17 Re: Database design - AGAIN
Previous Message Vangelis-Maria Tougia 2003-06-25 09:00:00 UPDATE table SET col = (SELECT ...)