DBeaver 执行 mysql 多条语句报错

问题描述:建表和插入数据操作一起执行数据库报错,信息如下

SQL 错误 [1064] [42000]: 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 'INSERT INTO emp_contact VALUES (1, '010-61231111', NULL, NULL, NULL);
INSERT IN' at line 9

解决方法

在DBeaver的 连接设置驱动属性allowMultiQueries 从 默认的false 改为true

再次执行 CTRL+ENTER 多条语句可正确执行

参考链接:MYSQL 同时执行多条SQL语句

posted @ 2020-03-11 08:54  Aunrea  阅读(6626)  评论(2编辑  收藏  举报