问题描述
我正在尝试使用连接到MariaDB的Libreoffice Base创建一个具有主键的表。 具有主键的自动生成的标准表(我假定为递增)。
但是它失败并显示以下消息:
Error: 1064
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
' PRIMARY KEY ("ID"))' at line 1
是否可以查看LibereOffice发送的查询?
解决方法
启用将数据库登录到表的功能,使我能够查看错误的查询。
SET GLOBAL log_output = 'TABLE';
SET GLOBAL general_log = 'ON';