grammar
REPLACE(str,from_str,to_str)
example
Remove content
spaces from the field
update `tb_news` set `content` = replace(`content`,' ','') where id = 1;
reference article
grammar
REPLACE(str,from_str,to_str)
example
Remove content
spaces from the field
update `tb_news` set `content` = replace(`content`,' ','') where id = 1;
reference article