【发布时间】:2013-04-26 04:10:07
【问题描述】:
UPDATE 'module_tests' SET 'tests_content' = REPLACE('tests_content', '<a onclick=', '<a class="dic" onclick=');
当我尝试在 phpmysql 中运行顶级查询时,它给出了以下错误。 谁能告诉我这是什么原因?
#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 ''module_tests' SET 'tests_content' = REPLACE('tests_content', '<a onclick=', '' at line 1
【问题讨论】:
-
'tests_content'是字段名吗..??如果它的字段名称,那么只需使用tests_content不带引号
标签: mysql replace phpmyadmin