mysql - 查看 Libreoffice Base 对 mysql 的查询
问题描述
我正在尝试使用连接到 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';
推荐阅读
- javascript - 正则表达式模式返回比预期更多的匹配
- java - 卡夫卡只订阅最新消息?
- linux - ...lib/crt1.o:在函数“_start”中:(.text+0x18):使用 IDL6.2 未定义对“main”的引用
- angular - 错误类型错误:无法读取未定义的属性“toString”,ngx-charts
- r - 有没有办法可以回收 purrr::map2 或 purrr::walk2 中较短列表的元素?
- reactjs - 反应原生 EXPO 安装(npm start)
- .net - .Net Core HttpClientFactory 配置 HttpClientHandler
- node.js - 产生
对于数组的每个元素
- powershell - 在 PowerShell 中使用 StreamWriter 附加到文件
- entity-framework - 使用 EF 核心 ncache 提供程序,自动缓存和同步数据库中的所有表