所以即时尝试获取动态生成的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
答案 0 :(得分:3)
答案 1 :(得分:3)
尝试在字段INT
周围添加反引号。
UPDATE abilities
SET STR=8, DEX=8, CON=8, `INT`=8, WIS=8, CHA=8, Points=0
WHERE ID=1