UPDATE 'module_tests' SET 'tests_content' = REPLACE('tests_content', '<a onclick=', '<a class="dic" onclick=');
phpmysql에서 최상위 쿼리를 실행하려고하면 오류가 발생합니다. 누군가 그 이유를 말해 줄 수 있습니까?SQL REPLACE가 phpmyadmin에서 오류를 발생했습니다.
#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'를 따옴표없이 사용한다면 –