spacenews表里面的message字段含有 “大图”这两个字。 
怎么把这俩字去掉。itemid从1000-2000的表都要改。select replace(message,'大图','') from 'spacenews' where itemid=1000 to 2000;    是这样吗???? 

解决方案 »

  1.   

    恩,对的。不过你要改成UPDATE语句才行。
      

  2.   

    这样吧。
    update spacenews set message = replace(message,'大图','') where itemid > 1000 and itemid < 2000;
      

  3.   

    #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 ','')'好像无法识别中文啊???? 我的mysql 版本为5.045。 这该怎么解决啊?求助。