【发布时间】:2020-03-25 15:24:03
【问题描述】:
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 。谢谢!
【问题讨论】:
标签: mysql lua mariadb mariadb-10.4 fivem