을 작동하지 않습니다 :SQL 업데이트 점진 내가 내 SQL 코드와 작은 문제가
UPDATE articles SET like=like+1 WHERE id=1
내가 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 'like=like+1 WHERE id=1' at line 1
을 int는 기본적으로 0 (길이 11)으로 설정됩니다. 어떻게 수리 할 수 있습니까? 도와주세요.
왜냐하면'like '가 예약어이기 때문입니다. –
http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html –