语法
REPLACE(str,from_str,to_str)
示例
去除 content
字段中的空格
update `tb_news` set `content` = replace(`content`,' ','') where id = 1;
参考文章
语法
REPLACE(str,from_str,to_str)
示例
去除 content
字段中的空格
update `tb_news` set `content` = replace(`content`,' ','') where id = 1;
参考文章