Om all spaces
te vervangen :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, ' ', '')
Om alle tabs
te verwijderen tekens :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\t', '' )
Om alle new line
te verwijderen tekens :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\n', '')
http://dev.mysql.com/doc /refman/5.0/en/string-functions.html#function_replace
Om first and last space(s)
te verwijderen van kolom :
UPDATE `table` SET `col_name` = TRIM(`col_name`)
http://dev.mysql.com/doc /refman/5.0/en/string-functions.html#function_trim