mysql去掉字段字符中间空格
语法:replace(object,search,replace) //清除news表中content字段中的空格 update `news` set `content`=replace(`content`,' ',''); //清除news表中content字段前后空格 update `news` set `content`= trim(`content`);
语法:replace(object,search,replace) //清除news表中content字段中的空格 update `news` set `content`=replace(`content`,' ',''); //清除news表中content字段前后空格 update `news` set `content`= trim(`content`);