当前位置:网站首页>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,查看数据结果
文章到这里就结束了,我是喵~~,有问题欢迎大家一起交流。
边栏推荐
- vant 源码解析 event.ts 事件处理 全局函数 addEventListener详解
- Li Kou ----- the maximum profit of operating Ferris wheel
- Deployment of Jenkins under win7
- Clickhouse copy paste multi line SQL statement error
- 基于 Ingress Controller 在集群外访问 Zadig 自测环境(最佳实践)
- ArcGIS栅格重采样方法介绍
- Simple interest mode - evil Chinese style
- @Validated basic parameter verification, grouping parameter verification and nested parameter verification
- Sorting out the problems encountered in MySQL built by pycharm connecting virtual machines
- Recursive query of multi-level menu data
猜你喜欢
張麗俊:穿透不確定性要靠四個“不變”
SQL knowledge leak detection
【案例】定位的运用-淘宝轮播图
Xlrd common operations
Exercise 1 simple training of R language drawing
Explain various hot issues of Technology (SLB, redis, mysql, Kafka, Clickhouse) in detail from the architecture
EN 438-7 laminated sheet products for building covering decoration - CE certification
Zhang Lijun: penetrating uncertainty depends on four "invariants"
Pytoch practice -- MNIST dataset handwritten digit recognition
R language learning notes
随机推荐
Longest swing sequence [greedy practice]
Introduction of ArcGIS grid resampling method
2022-07-03-CKA-粉丝反馈最新情况
AITM2-0002 12s或60s垂直燃烧试验
第05章_存储引擎
阿里云有奖体验:用PolarDB-X搭建一个高可用系统
MySQL deep paging optimization with tens of millions of data, and online failure is rejected!
Modifiers of attributes of TS public, private, protect
Generics of TS
Which securities company is better and which platform is safer for stock account opening
LeetCode_ Hash table_ Difficulties_ 149. Maximum number of points on the line
Deep merge object deep copy of vant source code parsing
What are the requirements of UL 2043 test for drive housing in the United States?
面试官:并发编程实战会吗?(线程控制操作详解)
Vant source code parsing event Detailed explanation of TS event processing global function addeventlistener
Uni app Bluetooth communication
Teach yourself to train pytorch model to Caffe (I)
postgis 安装地理信息扩展
JMeter installation under win7
2.2 basic grammar of R language