Re: Problem with sql function LOWER

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with sql function LOWER
Дата
Msg-id 25264.1025711806@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Problem with sql function LOWER  ("Th Templ" <templ_th@hotmail.com>)
Список pgsql-jdbc
"Th Templ" <templ_th@hotmail.com> writes:
> SELECT Nom,Prenom from personne where
> LOWER(Nom)='test';

I'm guessing that Nom is of type char(N) and therefore has padding
spaces in it.  You should use varchar or text instead of char to
avoid this sort of difficulty.

            regards, tom lane



В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: Problem with sql function LOWER
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: switching db's on the fly