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

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. 如何破解mssql for linux 3.5G内存的限制

    在上有篇博客中主要介绍了如何在CentOS 中安装和配置mssql ,在安装过程中遇到3.5G内存的限制,下面介绍如何去破解, 微软发布了SQLServer for Linux,但是安装竟然需要3.5 ...

  2. python字典中dict.get()和dict.setdefault()的异同点

    相同点: 两者是参数相同:dict.get(key, default=None), dict.setdefault(key, default=None) 如果指定的键不存在时,两者都返回默认值,默认是 ...

  3. LightOJ - 1079 概率dp

    题意:n个银行,每个有价值和被抓概率,要求找被抓概率不超过p的最大价值 题解:dp[i][j]表示前i个取j价值的所需最小概率,01背包处理,转移方程dp[i][j]=min(dp[i-1][j],d ...

  4. hdu 1517 A Multiplication Game(必胜态,必败态)

    A Multiplication Game Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Ot ...

  5. nyojb 2357

    http://acm.nyist.me/JudgeOnline/problem.php?id=2357 2357: 插塔憋憋乐 时间限制: 1 Sec  内存限制: 128 MB提交: 50  解决: ...

  6. js修改隔行tr的颜色。

    <!DOCTYPE html><html lang="zh-Hans"><head> <meta charset="UTF-8& ...

  7. Codeforces Round #277.5 (Div. 2)D Unbearable Controversy of Being (暴力)

    这道题我临场想到了枚举菱形的起点和终点,然后每次枚举起点指向的点,每个指向的点再枚举它指向的点看有没有能到终点的,有一条就把起点到终点的路径个数加1,最后ans+=C(路径总数,2).每两个点都这么弄 ...

  8. Spring转账业务_注解配置事物控制

    1.beans.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="h ...

  9. .net core结合Consul集群&Docker实现服务治理

    实战中的asp.net core结合Consul集群&Docker实现服务治理 https://www.cnblogs.com/guolianyu/p/9614050.html 0.目录 整体 ...

  10. tests

    test