所以即時嘗試獲取動態生成的SQL查詢來更新這些行,但我不斷收到錯誤。我真的不明白它有什麼問題。在我的sql查詢中得到一個錯誤,我無法弄清楚如何解決
所以..有什麼線索?
查詢:
UPDATE abilities
SET STR=8, DEX=8, CON=8, INT=8, WIS=8, CHA=8, Points=0
WHERE ID=1
錯誤:
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 'INT=8, WIS=8, CHA=8, Points=0 WHERE
ID=1' at line 2
我總是看到這種類型的問題,請閱讀[用於PHP和MySQL的常見數據庫調試](http://jason.pureconcepts.net/2013/04/common-debugging-php-mysql/)。 –