Re: Trim not working (PostgreSQL 9.1.2 on Win64)

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Trim not working (PostgreSQL 9.1.2 on Win64)
Дата
Msg-id 50141769.7080102@gmail.com
обсуждение исходный текст
Ответ на Trim not working (PostgreSQL 9.1.2 on Win64)  (Edson Richter <richter@simkorp.com.br>)
Ответы Re: Trim not working (PostgreSQL 9.1.2 on Win64)  (Edson Richter <edsonrichter@hotmail.com>)
Список pgsql-general
On 07/27/2012 04:58 PM, Edson Richter wrote:
> 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?

FYI the '' is redundant, empty spaces are removed by default.
Some examples of what is in rslinha2 before the above and what you are
seeing after would help.

>
> 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
>
>


--
Adrian Klaver
adrian.klaver@gmail.com

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

Предыдущее
От: Mark Phillips
Дата:
Сообщение: Re: BI tools and postgresql
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Replication/cloning: rsync vs modification dates?