Um all spaces
zu ersetzen :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, ' ', '')
Um alle tabs
zu entfernen Zeichen :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\t', '' )
Um alle new line
zu entfernen Zeichen :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\n', '')
http://dev.mysql.com/doc /refman/5.0/en/string-functions.html#function_replace
Um first and last space(s)
zu entfernen der Spalte :
UPDATE `table` SET `col_name` = TRIM(`col_name`)
http://dev.mysql.com/doc /refman/5.0/en/string-functions.html#function_trim