首页
消防安全隐患排查和验收
域名转发系统
祺平订单系统
您所在的位置:首页 > SQL > 正文

mysql去掉字段字符中间空格

321
语法:replace(object,search,replace)

//清除news表中content字段中的空格
update `news` set `content`=replace(`content`,' ','');

//清除news表中content字段前后空格
update `news` set `content`= trim(`content`);


本文网址:http://www.14study.cn/show.asp?id=106

若本文章侵犯了您的著作权,请联系我删除 QQ:695898855

更多>>网友评论
发表评论