欧亚汽车
您的当前位置:首页mysqlreplace函数用法实例

mysqlreplace函数用法实例

来源:欧亚汽车


语法:replace(object,search,replace)
描述:把object中的search全部替换为replace。

实例如下:

UPDATE school_more_info SET comments = replace( comments, '???', "'" )

将comments字段中的特殊字符�替换为’。

显示全文