Re: removing leading and trailing blanks from every row in a table

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: removing leading and trailing blanks from every row in a table
Дата
Msg-id glgcbd$4t1$10@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на removing leading and trailing blanks from every row in a table  ("Wm.A.Stafford" <stafford@marine.rutgers.edu>)
Список pgsql-novice
On 2009-01-21, Wm.A.Stafford <stafford@marine.rutgers.edu> wrote:
> I need a procedure to remove leading and trailing blanks from column of
> every row in a table.  I would like to pass the table name as a
> parameter and have the procedure do the rest.  Does something like this
> already exist?  Is it even possible?

the sql to do this is

UPDATE tablename SET columnname=TRIM( columnname );

Do you really need a function?


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

Предыдущее
От: Daniel Staal
Дата:
Сообщение: Re: SQL Question: Averages of intervals.
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: SQL Question: Averages of intervals.