Mysql如何去除字段值的空格

1、清除字段两边的空格
update hslx_protein set Indication=trim(Indication)

2、mysql去掉字段字符中间空格
update `news` set `content`=replace(`content`,' ','');

 

posted @ 2022-05-05 13:30  林暗惊风  阅读(703)  评论(0)    收藏  举报