数据库A,字段B,字段B里面的数据是:http://www.xxxxx.com/map/mode.php?m=house&q=info&hid=78批量将http://www.xxxxx.com/map/mode.php?m=house&q=info&hid=78  中的"mode.php"  换成"index.php"

解决方案 »

  1.   

    格式是否固定,字符串有1个"mode.php",详细说明
    update tt set b=replace(b,"mode.php" ,"index.php")
      

  2.   

    格式固定。里面就一个mode.php
      

  3.   

    如果是MYSQL,上述SQL语句应该可以了
      

  4.   

    update tt set b=replace(b,"mode.php" ,"index.php")用这个函数
      

  5.   

    REPLACE(str,from_str,to_str) 
    返回字符串str 以及所有被字符串to_str替代的字符串from_str 。