Re: TR: Like and =

Поиск
Список
Период
Сортировка
От Dani Oderbolz
Тема Re: TR: Like and =
Дата
Msg-id 3EF99322.6090908@ecologic.de
обсуждение исходный текст
Ответ на Re: TR: Like and =  ("Nicolas JOUANIN" <n.jouanin@regie-france.com>)
Ответы Re: TR: Like and =  ("Nicolas JOUANIN" <n.jouanin@regie-france.com>)
Список 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 по дате отправления:

Предыдущее
От: Dani Oderbolz
Дата:
Сообщение: Re: Delete duplicates
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Database design - AGAIN