mysql工具Navicat批量执行SQL语句
例如:我现在要同时执行这么多语句 update community set xqmc=replace(xqmc,'
',''); update community set xqbm=replace(xqbm,'
',''); update community set dkxx=replace(dkxx,'
',''); update community set ssqy=replace(ssqy,'
',''); update community set ssjd=replace(ssjd,'
',''); update community set zhs=replace(zhs,'
',''); update community set cqnx=replace(cqnx,'
',''); update community set cqsx=replace(cqsx,'
',''); update community set wylb=replace(wylb,'
',''); update community set wygs=replace(wygs,'
',''); update community set wyf=replace(wyf,'
',''); update community set gn=replace(gn,'
',''); update community set rq=replace(rq,'
',''); update community set gs=replace(gs,'
',''); update community set gd=replace(gd,'
',''); update community set kfs=replace(kfs,'
',''); update community set jgsj=replace(jgsj,'
',''); update community set sc=replace(sc,'
',''); update community set yy=replace(yy,'
',''); update community set yh=replace(yh,'
',''); update community set yey=replace(yey,'
',''); update community set zxx=replace(zxx,'
',''); update community set dx=replace(dx,'
',''); update community set gj=replace(gj,'
',''); update community set dt=replace(dt,'
',''); update community set rjl=replace(rjl,'
',''); update community set lhl=replace(lhl,'
',''); update community set zdmj=replace(zdmj,'
',''); update community set jznd=replace(jznd,'
',''); update community set jzmj=replace(jzmj,'
',''); update community set jzjg=replace(jzjg,'
',''); update community set jzlb=replace(jzlb,'
',''); update community set cwxx=replace(cwxx,'
',''); update community set xqpt=replace(xqpt,'
',''); update community set xqwz=replace(xqwz,'
',''); update community set cs=replace(cs,'
',''); update community set url=replace(url,'
',''); 我只要在每条语句后面加个分号 ; 就可以直接点击运行然后输出结果 结果: [SQL]update community set xqmc=replace(xqmc,'
',''); 受影响的行: 0 时间: 1.450s [SQL] update community set xqbm=replace(xqbm,'
',''); 受影响的行: 0 时间: 1.440s [SQL] update community set dkxx=replace(dkxx,'
',''); 受影响的行: 0 时间: 1.421s [SQL] update community set ssqy=replace(ssqy,'
',''); 受影响的行: 0 时间: 1.557s [SQL] update community set ssjd=replace(ssjd,'
',''); 受影响的行: 0 时间: 1.430s [SQL] update community set zhs=replace(zhs,'
',''); 受影响的行: 0 时间: 1.425s [SQL] update community set cqnx=replace(cqnx,'
',''); 受影响的行: 0 时间: 1.432s [SQL] update community set cqsx=replace(cqsx,'
',''); 受影响的行: 0 时间: 1.415s [SQL] update community set wylb=replace(wylb,'
',''); 受影响的行: 0 时间: 1.433s [SQL] update community set wygs=replace(wygs,'
',''); 受影响的行: 0 时间: 1.436s [SQL] update community set wyf=replace(wyf,'
',''); 受影响的行: 0 时间: 1.424s [SQL] update community set gn=replace(gn,'
',''); 受影响的行: 0 时间: 1.428s [SQL] update community set rq=replace(rq,'
',''); 受影响的行: 0 时间: 1.439s [SQL] update community set gs=replace(gs,'
',''); 受影响的行: 0 时间: 1.438s [SQL] update community set gd=replace(gd,'
',''); 受影响的行: 0 时间: 1.461s [SQL] update community set kfs=replace(kfs,'
',''); 受影响的行: 0 时间: 1.440s [SQL] update community set jgsj=replace(jgsj,'
',''); 受影响的行: 0 时间: 1.449s [SQL] update community set sc=replace(sc,'
',''); 受影响的行: 1893 时间: 1.517s [SQL] update community set yy=replace(yy,'
',''); 受影响的行: 1743 时间: 1.499s [SQL] update community set yh=replace(yh,'
',''); 受影响的行: 1785 时间: 1.527s [SQL] update community set yey=replace(yey,'
',''); 受影响的行: 1094 时间: 1.485s [SQL] update community set zxx=replace(zxx,'
',''); 受影响的行: 2342 时间: 1.531s [SQL] update community set dx=replace(dx,'
',''); 受影响的行: 0 时间: 1.461s [SQL] update community set gj=replace(gj,'
',''); 受影响的行: 0 时间: 1.488s [SQL] update community set dt=replace(dt,'
',''); 受影响的行: 0 时间: 1.432s [SQL] update community set rjl=replace(rjl,'
',''); 受影响的行: 0 时间: 1.421s [SQL] update community set lhl=replace(lhl,'
',''); 受影响的行: 0 时间: 1.428s [SQL] update community set zdmj=replace(zdmj,'
',''); 受影响的行: 0 时间: 1.443s [SQL] update community set jznd=replace(jznd,'
',''); 受影响的行: 0 时间: 1.455s [SQL] update community set jzmj=replace(jzmj,'
',''); 受影响的行: 1 时间: 1.456s [SQL] update community set jzjg=replace(jzjg,'
',''); 受影响的行: 0 时间: 1.422s [SQL] update community set jzlb=replace(jzlb,'
',''); 受影响的行: 0 时间: 1.412s [SQL] update community set cwxx=replace(cwxx,'
',''); 受影响的行: 0 时间: 1.443s [SQL] update community set xqpt=replace(xqpt,'
',''); 受影响的行: 1894 时间: 1.604s [SQL] update community set xqwz=replace(xqwz,'
',''); 受影响的行: 0 时间: 1.609s [SQL] update community set cs=replace(cs,'
',''); 受影响的行: 0 时间: 1.656s [SQL] update community set url=replace(url,'
',''); 受影响的行: 0 时间: 1.630s
mysql工具Navicat批量执行SQL语句的更多相关文章
- JDBC连接MYSQL,批量执行SQL语句或在执行一个SQL语句之前执行一个SQL语句
conn = MysqlJdbcUtils.getConnection(); Statement ps=conn.createStatement(); ps.addBatch("trunca ...
- SQL*PLUS中批量执行SQL语句
SQL*PLUS中批量执行SQL语句 今天由于工作的需要,要在CMD中批量执行大量的SQL语句,对于Oracle学习还处在入门阶段的我,只能硬着头皮到处去寻找资料(主要是网络资料,也包括自己的电子书) ...
- 批量执行sql语句
基本使用 $sqls="sql语句1;sql语句2;sql语句n"; 或 $sqls="insert into xx;"; $sqls.="inse ...
- c#实现用SQL池(多线程),定时批量执行SQL语句 【转】
在实际项目开发中,业务逻辑层的处理速度往往很快,特别是在开发Socket通信服务的时候,网络传输很快,但是一旦加上数据库操作,性能一落千丈,数据库操作的效率往往成为一个系统整体性能的瓶颈.面对这问题, ...
- PHP mysqli 增强 批量执行sql 语句的实现代码
本篇文章介绍了,在PHP中 mysqli 增强 批量执行sql 语句的实现代码.需要的朋友参考下. mysqli 增强-批量执行sql 语句 <?php //mysqli 增强-批量执行sql ...
- c#实现用SQL池(多线程),定时批量执行SQL语句
在实际项目开发中,业务逻辑层的处理速度往往很快,特别是在开发Socket通信服务的时候,网络传输很快,但是一旦加上数据库操作,性能一落千丈,数据库操作的效率往往成为一个系统整体性能的瓶颈.面对这问题, ...
- mysqli扩展库应用---批量执行sql语句
1, mysqli批量执行sql语句.基本语法: $sqls=”sql1;sql2;………” mysqli::multi_query($sqls); 同一个$sqls要么是增删改语句集合,要么是查询语 ...
- Jmeter(三十八)Jmeter Question 之 ‘批量执行SQL语句’
知识使我们变得玩世不恭,智慧使我们变得冷酷无情,我们思考的太多,感知太少,除了机器,我们更需要人性,除了智慧,我们需要仁慈和善良. ------出自查理卓别林的演讲 前面有提到Jmeter使用JDBC ...
- executeBatch()批量执行Sql语句
executeBatch()方法:用于成批地执行SQL语句,但不能执行返回值是ResultSet结果集的SQL语句,而是直接执行stmt.executeBatch(); addBatch():向批处理 ...
随机推荐
- FMX.TTabControl_多行
1. 重载 TTabControl.RealignTabs; 2. 3.
- 书_Delphi
1. 有讲 坦克大战 的那本Delphi叫什么 叫做:<<Delphi深度历险>> 2.
- SQL Server中的执行引擎入门
简介 当查询优化器(Query Optimizer)将T-SQL语句解析后并从执行计划中选择最低消耗的执行计划后,具体的执行就会交由执行引擎(Execution Engine)来进行执行.本文旨在 ...
- SSIS包的组建之连接管理器
上一篇我们通过一个示例来介绍一下SSIS 包的开发.接下来的内容我们将学习一下包中各个选项卡的使用.如:连接管理器选项卡.控制流选项卡.数据流选项卡和事件处理选项卡等等.这一篇将介绍一下连接管理器作用 ...
- phalcon:整合官方多模块功能,方便多表查询
phalcon:整合官方多模块功能,方便多表查询 项目分为: namespace Multiple\Backend; namespace Multiple\Frontend; 目录结构如下: publ ...
- Python学习之路day4-列表生成式、生成器、Iterable和Iterator
一.列表生成式 顾名思义,列表生成式就是用于生成列表的特殊语法形式的表达式. 1.1 语法格式 [exp for iter_var in iterable] 工作过程: 1.通过iter_var迭代i ...
- 炫酷自定义翻转View--第三方开源--TagCloudView
下载地址:https://github.com/ChinaZeng/3dTagCloudAndroid 贴上Demo代码: <com.moxun.tagcloudlib.view.TagClou ...
- spring MVC multipart处理文件上传
在开发Web应用程序时比较常见的功能之一,就是允许用户利用multipart请求将本地文件上传到服务器,而这正是Grails的坚固基石——Spring MVC其中的一个优势.Spring通过对Serv ...
- 【SQL查询】查询结果分组_Group
1. 概述 “Group By”从字面意义上理解就是根据“By”指定的规则对数据进行分组 示例 2. group by的简单操作 3. Group By中Select指定的字段限制 select指定的 ...
- [Luogu3852][TJOI2007]小朋友
luogu 题意 求弦图的最大独立集. sol 按照完美消除序列一个个贪心选即可. code #include<cstdio> #include<algorithm> #inc ...