SQL 使用替换更新在替换语句中抛出 1064 错误
SQL UPDATE with Replace throwing 1064 error inside replace statement
我之前使用 REPLACE 语句成功,但由于某些原因,此语句一直抛出 1064 错误?
UPDATE `wp_UPCP_Item_Images` SET `Item_Image_URL` = REPLACE (`Item_Image_URL`,
'http://www.salestraininganddevelopment', 'http://tilesunlimitedny')
但一直出现此错误?
#1064 - You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near
''http://www.salestraininganddevelopment''http://tilesunlimitedny') FROM `wp_UPC' at line 1
按要求截图:
mysql screenshot
我错过了什么,一直盯着这个语句看我能不能找到它但是,我迷路了。
通读所有建议的问题,似乎找不到任何有效的方法。
非常感谢,杰夫
"REPLACE" 和 "(".
之间不能有空格
"You are trying to simulating the query. Don't do that. It is just broken. Just run the query. " 就是这样,我 运行 它成功了,非常感谢,不知道模拟坏了,或者至少我没有正确使用它。
我之前使用 REPLACE 语句成功,但由于某些原因,此语句一直抛出 1064 错误?
UPDATE `wp_UPCP_Item_Images` SET `Item_Image_URL` = REPLACE (`Item_Image_URL`,
'http://www.salestraininganddevelopment', 'http://tilesunlimitedny')
但一直出现此错误?
#1064 - You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near
''http://www.salestraininganddevelopment''http://tilesunlimitedny') FROM `wp_UPC' at line 1
按要求截图: mysql screenshot
我错过了什么,一直盯着这个语句看我能不能找到它但是,我迷路了。 通读所有建议的问题,似乎找不到任何有效的方法。 非常感谢,杰夫
"REPLACE" 和 "(".
之间不能有空格"You are trying to simulating the query. Don't do that. It is just broken. Just run the query. " 就是这样,我 运行 它成功了,非常感谢,不知道模拟坏了,或者至少我没有正确使用它。