如果需要把数据库中某一列值中的部分字符替换成其他字符,可以使用replace函数进行替换,例如:
在row1列中出现的所有‘from str’将会被替换为‘to str’
update database.table set row1 = replace(row1,'from str','to str')
如果需要把数据库中某一列值中的部分字符替换成其他字符,可以使用replace函数进行替换,例如:
在row1列中出现的所有‘from str’将会被替换为‘to str’
update database.table set row1 = replace(row1,'from str','to str')