За да замените all spaces
:
UPDATE `table` SET `col_name` = REPLACE(`col_name`, ' ', '')
За да премахнете всички tabs
символи :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\t', '' )
За да премахнете всички new line
символи :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\n', '')
http://dev.mysql.com/doc /refman/5.0/en/string-functions.html#function_replace
За да премахнете first and last space(s)
на колона :
UPDATE `table` SET `col_name` = TRIM(`col_name`)
http://dev.mysql.com/doc /refman/5.0/en/string-functions.html#function_trim