Aby zastąpić all spaces
:
UPDATE `table` SET `col_name` = REPLACE(`col_name`, ' ', '')
Aby usunąć wszystkie tabs
znaki :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\t', '' )
Aby usunąć wszystkie new line
znaki :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\n', '')
http://dev.mysql.com/doc /refman/5.0/en/string-functions.html#function_replace
Aby usunąć first and last space(s)
kolumny :
UPDATE `table` SET `col_name` = TRIM(`col_name`)
http://dev.mysql.com/doc /refman/5.0/en/string-functions.html#function_trim