我的数据库包含许多 + 号,我想用空格替换它.... 应该查询什么?
最佳答案
update tbl set column = replace(column, '+', ' ')
这会将名为“tbl”的表中名为“column”的列中的所有“+”更新为单个空格,每个“+”一个空格
如果你只需要选择显示,那么同样的功能,例如
select replace(column, '+', ' ') column, other1, col3
from tbl
关于mysql - 如何在我的数据库中用 SPACE 替换 "+"(加号)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5418854/