当前位置:网站首页>DBeaver同时执行多条insert into报错处理
DBeaver同时执行多条insert into报错处理
2022-07-05 21:30:00 【晓之以理的喵~~】
一、背景
之前使用的数据库连接软件Navicat的破解版,后来公司要求不可以使用破解版的Navicat,所以就换了DBeaver。
这是一个很不错的软件,免费,而且可以连接不同类型的数据库,MySQL、Oracle、hive、SQLserver等都可以使用,很方便也很良心,但是在使用的过程中发现了一个问题,DBeaver默认是无法提交多条SQL语句的,因为在公司里面,有个别需求需要导入Excel的数据,所以不能批量执行SQL确实是一个问题。
迫于无奈,寻寻觅觅终于找到了一个方法,现在也记录下来也分析给大家。
二、问题重现
1,新建数据表
CREATE TABLE SLM.test_data(
name varchar(20)
,age varchar(20)
);
2,数据插入语句
INSERT INTO SLM.test_data values ('xiaoming','20');
INSERT INTO SLM.test_data values ('xiaohua','25');
INSERT INTO SLM.test_data values ('tom','13');
3,问题重现

注意:报错显示问题在第二条,这时看数据表里面,是没有插入数据的
SELECT * FROM test_data;
三、问题解决
1,修改设置
右击数据库连接–编辑连接–驱动属性
修改allowMultiQueries,默认为false,需要修改为true,点击确认既可

2,重新运行SQL语句
INSERT INTO SLM.test_data values ('xiaoming','20');
INSERT INTO SLM.test_data values ('xiaohua','25');
INSERT INTO SLM.test_data values ('tom','13');

3,查看数据结果

文章到这里就结束了,我是喵~~,有问题欢迎大家一起交流。
边栏推荐
- 场景化面试:关于分布式锁的十问十答
- Access Zadig self-test environment outside the cluster based on ingress controller (best practice)
- Display DIN 4102-1 Class B1 fire test requirements
- Generics of TS
- MySQL 千万数据量深分页优化, 拒绝线上故障!
- 办公遇到的问题--
- Wood board ISO 5660-1 heat release rate mapping test
- Alibaba cloud award winning experience: build a highly available system with polardb-x
- Modifiers of attributes of TS public, private, protect
- MySQL deep paging optimization with tens of millions of data, and online failure is rejected!
猜你喜欢

Using webassembly to operate excel on the browser side

Two ways to realize video recording based on avfoundation

KingbaseES V8R3集群维护案例之---在线添加备库管理节点

Wood board ISO 5660-1 heat release rate mapping test

ArcGIS栅格重采样方法介绍

JMeter installation under win7

The transformation based on vertx web sstore redis to realize the distributed session of vertx HTTP application

MySQL 千万数据量深分页优化, 拒绝线上故障!

Haas506 2.0 development tutorial - Alibaba cloud OTA - PAC firmware upgrade (only supports versions above 2.2)

Making global exception handling classes with aspect
随机推荐
Selenium's method of getting attribute values in DOM
EN 438-7 laminated sheet products for building covering decoration - CE certification
Clickhouse copy paste multi line SQL statement error
Traps in the explode function in PHP
ArcGIS\QGIS无插件加载(无偏移)MapBox高清影像图
SQL knowledge leak detection
面试官:并发编程实战会吗?(线程控制操作详解)
Test of incombustibility of cement adhesives BS 476-4
@Validated基础参数校验、分组参数验证和嵌套参数验证
【日常训练--腾讯精选50】89. 格雷编码(看题解才会的)
vant 源码解析 event.ts 事件处理 全局函数 addEventListener详解
股票开户选择哪家证券公司比较好哪家平台更安全
Display DIN 4102-1 Class B1 fire test requirements
Pytoch practice -- MNIST dataset handwritten digit recognition
五层网络协议
Utils/index TS tool function
Some things make feelings nowhere to put
Sitge joined the opengauss open source community to jointly promote the ecological development of the database industry
Exercise 1 simple training of R language drawing
【日常训练】729. 我的日程安排表 I