Chcete-li nahradit all spaces
:
UPDATE `table` SET `col_name` = REPLACE(`col_name`, ' ', '')
Chcete-li odstranit všechny tabs
znaky :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\t', '' )
Chcete-li odstranit všechny new line
znaky :
UPDATE `table` SET `col_name` = REPLACE(`col_name`, '\n', '')
http://dev.mysql.com/doc /refman/5.0/cs/string-functions.html#function_replace
Chcete-li odstranit first and last space(s)
sloupce :
UPDATE `table` SET `col_name` = TRIM(`col_name`)
http://dev.mysql.com/doc /refman/5.0/cs/string-functions.html#function_trim