For at erstatte all spaces
:
UPDATE `table` SET `col_name` = REPLACE(`col_name`, ' ', '')
For at fjerne alle tabs
tegn :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\t', '' )
For at fjerne al new line
tegn :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\n', '')
http://dev.mysql.com/doc /refman/5.0/da/string-functions.html#function_replace
For at fjerne first and last space(s)
af kolonne :
UPDATE `table` SET `col_name` = TRIM(`col_name`)
http://dev.mysql.com/doc /refman/5.0/da/string-functions.html#function_trim