替换SQL字段中的指定字符

来源:互联网 发布:淘宝百度网盘会员 编辑:程序博客网 时间:2024/05/21 17:54

sql 函数。

replace(string_expression , string_pattern , string_replacement)

第一个参数:要查找的字段。

第二个参数:要查找的字符。

第三个参数:要替换成的字符。




update data2 set location=replace(location,'中国电信','电信')



0 0
原创粉丝点击