Trim not working (PostgreSQL 9.1.2 on Win64)

Поиск
Список
Период
Сортировка
От Edson Richter
Тема Trim not working (PostgreSQL 9.1.2 on Win64)
Дата
Msg-id 50132B42.50100@simkorp.com.br
обсуждение исходный текст
Ответы Re: Trim not working (PostgreSQL 9.1.2 on Win64)  (Adrian Klaver <adrian.klaver@gmail.com>)
Список pgsql-general
I've a select with the following expression:

select trim(both ' ' from substring(rslinha2 from 5 for position('(-)' in rslinha2)-6))
           from ...

problem is that the spaces are not being removed from either side. What would be wrong?

Thanks for your help,
--

Edson Carlos Ericksson Richter
SimKorp Informática Ltda
Fone:(51) 3366-7964
Celular:(51)9318-9766/(51) 8585-0796
Embedded Image

Вложения

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

Предыдущее
От: Edson Richter
Дата:
Сообщение: Re: Trim not working (PostgreSQL 9.1.2 on Win64)
Следующее
От: Christian Ullrich
Дата:
Сообщение: Re: FATAL : could not read directory base": Invalid argument