zoukankan      html  css  js  c++  java
  • update脚本出错

    批量执行:

    update `erp_orders` set `orders_shipping_code`='RL007169726CN' where `erp_orders_id`=1055614141 and orders_shipping_code='';
    update `erp_orders` set `orders_shipping_code`='RL007169730CN' where `erp_orders_id`=1055614144 and orders_shipping_code='';
    update `erp_orders` set `orders_shipping_code`='RL007169743CN' where `erp_orders_id`=1055874016 and orders_shipping_code='';
    update `erp_orders` set `orders_shipping_code`='RL007169757CN' where `erp_orders_id`=1055874027 and orders_shipping_code='';
    update `erp_orders` set `orders_shipping_code`='RN602488477CN' where `erp_orders_id`=1055878179 and orders_shipping_code='';
    update `erp_orders` set `orders_shipping_code`='RG019175635CN' where `erp_orders_id`=1055880108 and orders_shipping_code='';

    出错信息:

    update `erp_orders` set `orders_shipping_code`='RL007169726CN' where `erp_orders_id`=1055614141 and orders_shipping_code='';# MySQL 返回的查询结果为空 (即零行)。
    
    update `erp_orders` set `orders_shipping_code`='RL007169730CN' where `erp_orders_id`=1055614144 and orders_shipping_code='';# MySQL 返回的查询结果为空 (即零行)。
    
    update `erp_orders` set `orders_shipping_code`='RL007169743CN' where `erp_orders_id`=1055874016 and orders_shipping_code='';# MySQL 返回的查询结果为空 (即零行)。
    
    update `erp_orders` set `orders_shipping_code`='RL007169757CN' where `erp_orders_id`=1055874027 and orders_shipping_code='';# MySQL 返回的查询结果为空 (即零行)。
    
    update `erp_orders` set `orders_shipping_code`='RN602488477CN' where `erp_orders_id`=1055878179 and orders_shipping_code='';# MySQL 返回的查询结果为空 (即零行)。
    
    update `erp_orders` set `orders_shipping_code`='RG019175635CN' where `erp_orders_id`=1055880108 and orders_shipping_code='';# MySQL 返回的查询结果为空 (即零行)。

    再updata语句较多如何批量导入:

    $con=$con = mysql_pconnect("localhost:3306","root","****");
    mysql_query("SET NAMES utf8");
    mysql_select_db("erp_database", $con);
    
    $fp=fopen("/home/xyt/桌面/a.null", "r");
    
    
    while (!feof($fp))
    {
      $line = fgets($fp);
      echo $line,"<br />";
      mysql_query($line);
      echo "影响蛤功能书:".mysql_affected_rows()."<br/>";  
    }
  • 相关阅读:
    单例模式
    HashSet、LinkedHashSet、SortedSet、TreeSet
    ArrayList、LinkedList、CopyOnWriteArrayList
    HashMap、Hashtable、LinkedHashMap
    andrew ng machine learning week8 非监督学习
    andrew ng machine learning week7 支持向量机
    andrew ng machine learning week6 机器学习算法理论
    andrew ng machine learning week5 神经网络
    andrew ng machine learning week4 神经网络
    vue组件监听属性变化watch方法报[Vue warn]: Method "watch" has type "object" in the component definition. Did you reference the function correctly?
  • 原文地址:https://www.cnblogs.com/canbefree/p/3867742.html
Copyright © 2011-2022 走看看