update ms_article Set Content=`REPLACE`(str,from_str,to_str)
[Err] 1630 - FUNCTION data.REPLACE does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual
我艹。。。。懵逼了。。。
update ms_article Set Content=`REPLACE`(str,from_str,to_str)
就是`REPLACE`的两个``影响到了。
差点怀疑人生啊~~~

本文记录了一次在使用SQL REPLACE函数时遇到的语法错误经历,解析了如何正确使用反引号避免SQL解析器误判关键字为标识符的问题。
2072

被折叠的 条评论
为什么被折叠?



