trimming a column - Mailing list pgsql-general

From Michael P. Soulier
Subject trimming a column
Date
Msg-id 20120504010141.GP5230@mitel.com
Whole thread Raw
Responses Re: trimming a column
Re: trimming a column
List pgsql-general
Hi,

I need to trim whitespace off of a whole column and replace the existing
values with the trimmed ones.

This isn't working

update mytable set id = trim(id);

I'm not sure of the correct syntax. Help appreciated.

Mike

Attachment

pgsql-general by date:

Previous
From: Chris Angelico
Date:
Subject: Re: Move the postgreSQL database from Drive C to Map Network Drive (Called Z)
Next
From: Greg Williamson
Date:
Subject: Re: trimming a column