將abc替換為1,2,3
update table set fields = REPLACE(fields, 'abc', '123');

解决方案 »

  1.   

    update tbl_name 
    set field=REPLACE(field, 'haode=yes', CONCAT('type=', SUBSTRING_INDEX(SUBSTRING_INDEX(field, '</b>', 1), '<b>', -1))
      

  2.   

    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2
      

  3.   

    可以给份完整代码吗,真心不懂SQL语句
    数据库doudou
    表名phome_ecms_news_data_1
    字段newstext