Pour remplacer all spaces :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, ' ', '')
Pour supprimer tous les tabs caractères :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\t', '' )
Pour supprimer tous les new line caractères :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\n', '')
https://dev.mysql.com/doc /refman/5.0/en/string-functions.html#function_replace
Pour supprimer first and last space(s) de colonne :
UPDATE `table` SET `col_name` = TRIM(`col_name`)
https://dev.mysql.com/doc /refman/5.0/en/string-functions.html#function_trim