MySQL.Async.fetchAll('INSERT INTO position (id, x, y, z) VALUES (@id, @x, @y, @z)',
{['@id'] = identifier, ['@x'] = coords.x, ['@y'] = coords.z, ['@z'] = coords.z})
你好。我正在学习编程,我已经为我的 FiveM 服务器编写了上面的简单命令,但由于某种原因,它返回了下面的代码,当它应该没问题的时候。我已经检查过,id 和 coords 一切正常,所以问题一定是语法。
[MySQL] [testeServerClient] An error happens on MySQL for query "INSERT INTO position (id, x, y, z) VALUES (@id, 0, 0, 0)": ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'position (id, x, y, z) VALUES (@id, 0, 0, 0)' at line 1
有谁知道如何修理它?我的 MariaDB 版本是10.4.11-MariaDB。谢谢!