当前位置:网站首页>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,查看数据结果
文章到这里就结束了,我是喵~~,有问题欢迎大家一起交流。
边栏推荐
- one hundred and twenty-three thousand four hundred and fifty-six
- @Validated basic parameter verification, grouping parameter verification and nested parameter verification
- EasyExcel的讀寫操作
- PVC plastic sheets BS 476-6 determination of flame propagation properties
- Interviewer: will concurrent programming practice meet? (detailed explanation of thread control operation)
- Alibaba cloud award winning experience: build a highly available system with polardb-x
- [case] Application of element display and hiding -- element mask
- Exercise 1 simple training of R language drawing
- MMAP
- 木板ISO 5660-1 热量释放速率摸底测试
猜你喜欢
2.2 basic grammar of R language
[case] Application of element display and hiding -- element mask
Chapter 05_ Storage engine
The transformation based on vertx web sstore redis to realize the distributed session of vertx HTTP application
Recursive query of multi-level menu data
Evolution of zhenai microservice underlying framework from open source component encapsulation to self-development
R language learning notes
Learning robots have no way to start? Let me show you the current hot research directions of robots
Realize the function of verifying whether the user has completed login when browsing the page
EasyExcel的讀寫操作
随机推荐
leetcode:1139. The largest square bounded by 1
MMAP
Summary of data analysis steps
事项研发工作流全面优化|Erda 2.2 版本如“七”而至
第05章_存储引擎
Comparison table of foreign lead American abbreviations
PVC plastic sheets BS 476-6 determination of flame propagation properties
kingbaseES V8R3数据安全案例之---审计记录清除案例
How to prepare for the algorithm interview and answer the algorithm interview questions
MySQL InnoDB Architecture Principle
ArcGIS栅格重采样方法介绍
Simple interest mode - lazy type
阿里云有奖体验:用PolarDB-X搭建一个高可用系统
2022-07-03-CKA-粉丝反馈最新情况
Selenium gets the verification code image in DOM
Xlrd common operations
Influence of oscilloscope probe on measurement bandwidth
uni-app 蓝牙通信
How to send samples when applying for BS 476-7 display? Is it the same as the display??
Haas506 2.0 development tutorial - Alibaba cloud OTA - PAC firmware upgrade (only supports versions above 2.2)