当前位置:网站首页>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,查看数据结果

文章到这里就结束了,我是喵~~,有问题欢迎大家一起交流。
边栏推荐
- JS common method encapsulation
- Xlrd common operations
- Recursive query of multi-level menu data
- Sitge joined the opengauss open source community to jointly promote the ecological development of the database industry
- Interviewer: will concurrent programming practice meet? (detailed explanation of thread control operation)
- Pytorch实战——MNIST数据集手写数字识别
- xlrd常见操作
- Ethereum ETH的奖励机制
- selenium 查找b或p标签的内容
- 有些事情让感情无处安放
猜你喜欢
随机推荐
Introduction of ArcGIS grid resampling method
kingbaseES V8R3数据安全案例之---审计记录清除案例
Add ICO icon to clion MinGW compiled EXE file
Pytoch practice -- MNIST dataset handwritten digit recognition
Determine the best implementation of horizontal and vertical screens
Realize the function of verifying whether the user has completed login when browsing the page
LeetCode_ Hash table_ Difficulties_ 149. Maximum number of points on the line
使用Aspect制作全局异常处理类
Influence of oscilloscope probe on measurement bandwidth
EasyExcel的读写操作
事项研发工作流全面优化|Erda 2.2 版本如“七”而至
Selenium gets the verification code image in DOM
leetcode:1755. Sum of subsequences closest to the target value
123456
Alibaba cloud award winning experience: build a highly available system with polardb-x
vant 源码解析 event.ts 事件处理 全局函数 addEventListener详解
Selenium finds the contents of B or P Tags
Some things make feelings nowhere to put
Opérations de lecture et d'écriture pour easyexcel
Test of incombustibility of cement adhesives BS 476-4
![R language [data management]](/img/41/b89bb8794c06280e58988e1c1a5e02.png)






![Longest swing sequence [greedy practice]](/img/e1/70dc21b924232c7e5e3da023a4bed2.png)

