例如:我现在要同时执行这么多语句

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语句的更多相关文章

  1. JDBC连接MYSQL,批量执行SQL语句或在执行一个SQL语句之前执行一个SQL语句

    conn = MysqlJdbcUtils.getConnection(); Statement ps=conn.createStatement(); ps.addBatch("trunca ...

  2. SQL*PLUS中批量执行SQL语句

    SQL*PLUS中批量执行SQL语句 今天由于工作的需要,要在CMD中批量执行大量的SQL语句,对于Oracle学习还处在入门阶段的我,只能硬着头皮到处去寻找资料(主要是网络资料,也包括自己的电子书) ...

  3. 批量执行sql语句

    基本使用 $sqls="sql语句1;sql语句2;sql语句n"; 或 $sqls="insert into xx;";  $sqls.="inse ...

  4. c#实现用SQL池(多线程),定时批量执行SQL语句 【转】

    在实际项目开发中,业务逻辑层的处理速度往往很快,特别是在开发Socket通信服务的时候,网络传输很快,但是一旦加上数据库操作,性能一落千丈,数据库操作的效率往往成为一个系统整体性能的瓶颈.面对这问题, ...

  5. PHP mysqli 增强 批量执行sql 语句的实现代码

    本篇文章介绍了,在PHP中 mysqli 增强 批量执行sql 语句的实现代码.需要的朋友参考下. mysqli 增强-批量执行sql 语句 <?php //mysqli 增强-批量执行sql ...

  6. c#实现用SQL池(多线程),定时批量执行SQL语句

    在实际项目开发中,业务逻辑层的处理速度往往很快,特别是在开发Socket通信服务的时候,网络传输很快,但是一旦加上数据库操作,性能一落千丈,数据库操作的效率往往成为一个系统整体性能的瓶颈.面对这问题, ...

  7. mysqli扩展库应用---批量执行sql语句

    1, mysqli批量执行sql语句.基本语法: $sqls=”sql1;sql2;………” mysqli::multi_query($sqls); 同一个$sqls要么是增删改语句集合,要么是查询语 ...

  8. Jmeter(三十八)Jmeter Question 之 ‘批量执行SQL语句’

    知识使我们变得玩世不恭,智慧使我们变得冷酷无情,我们思考的太多,感知太少,除了机器,我们更需要人性,除了智慧,我们需要仁慈和善良. ------出自查理卓别林的演讲 前面有提到Jmeter使用JDBC ...

  9. executeBatch()批量执行Sql语句

    executeBatch()方法:用于成批地执行SQL语句,但不能执行返回值是ResultSet结果集的SQL语句,而是直接执行stmt.executeBatch(); addBatch():向批处理 ...

随机推荐

  1. cplusplus.com

    1/ http://www.cplusplus.com/reference/map/multimap/find/ 2. C

  2. Python快速学习-获取对象信息

    1type() 获取对象的基本类型,判断两个对象类型. 2types 判断对象是否是函数,使用前要引入import types 3isinstance() 判断class类型,判断一个变量是否是某种类 ...

  3. 碰到错误Could not load the Tomcat server configuration at \Servers\MyEclipse Tomcat v8.5-config. The Servers project is closed.

    本人用的myeclipse是2017版. 可能解决的方法是: 双击MyEclipse Tomcat v8.5,然后就会弹出以下窗口,

  4. 51nod 1672 贪心/队列

    http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1672 1672 区间交 基准时间限制:1 秒 空间限制:131072 K ...

  5. 51nod 1010 stl/数论/二分

    http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1010 1010 只包含因子2 3 5 基准时间限制:1 秒 空间限制:1 ...

  6. ADO.NET异步操作测试

    配置文件: <?xml version="1.0"?> <configuration> <startup> <supportedRunti ...

  7. C#中的线程(一)入门

    C#中的线程(一)入门   Keywords:C# 线程Source:http://www.albahari.com/threading/Author: Joe AlbahariTranslator: ...

  8. svn代码回滚命令 svn up -r

    第一种情况:改动没有被提交(commit). 这种情况下,使用svn revert就能取消之前的修改. svn revert用法如下: # svn revert [-R] something 其中so ...

  9. tensorflow中创建多个计算图(Graph)

    tf程序中,系统会自动创建并维护一个默认的计算图,计算图可以理解为神经网络(Neural Network)结构的程序化描述.如果不显式指定所归属的计算图,则所有的tensor和Operation都是在 ...

  10. mysql前缀索引的应用

    在mysql中有时需要索引的列很长,如果直接应用索引会造成索引过大的问题.因此我们可以取其中一部分字段来做索引,例: 添加索引:alter table * add key (field(3));   ...