Re: Stripping empty space from all fields in a table?

Поиск
Список
Период
Сортировка
От Shoaib Mir
Тема Re: Stripping empty space from all fields in a table?
Дата
Msg-id bf54be870610271246x446f34fy78a0783a43cdfd0d@mail.gmail.com
обсуждение исходный текст
Ответ на Stripping empty space from all fields in a table?  ("J B" <jbwellsiv@gmail.com>)
Список pgsql-general
You can use something like

select ltrim(string, ' ');

and

select rtrim(string, ' ');

Thanks,
--------
Shoaib Mir
EnterpriseDB (www.enterprisedb.com )

On 10/28/06, J B <jbwellsiv@gmail.com> wrote:
Guys,

I have a table that has various fields that have whitespace in the values. I'd like to roll through and strip the left and right whitespace out of all fields that contain strings.

Is there any easy way to do this?

Thanks!

JB

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

Предыдущее
От: "J B"
Дата:
Сообщение: Stripping empty space from all fields in a table?
Следующее
От: Russ Brown
Дата:
Сообщение: Re: Simple OUTER JOIN doubt