本帖最后由 nihailai3 于 2012-12-23 17:44:23 编辑

解决方案 »

  1.   

    1
    update tb set col1  =substring(col1,6);2
    update tb set col1 = replace(col1,'?',' ');
      

  2.   

    update table1 set 标题=concat(replace (标题,'?',''),'?')
      

  3.   

    1.文章中有的标题是 啊啊啊啊 柔柔弱弱爱爱爱这种格式
     我想把这样的标题开头 4个汉字+一个空格 批量删除 语句该怎么写啊?
    什么字符集?
    utf8
    delete from tt where 
    F(LEFT(标题,1) REGEXP '[^ -~]',1,0)
    +IF(MID(标题,2,1) REGEXP '[^ -~]',1,0)+
    IF(MID(标题,3,1) REGEXP '[^ -~]',1,0)+
    IF(MID(标题,4,1) REGEXP '[^ -~]',1,0)=4 and 
    MID(标题,5,1)=' ' 2.例:aaaa?bbbb?
    update tt set 标题=concat(replace (标题,'?',''),'?')
      

  4.   

    1.文章中有的标题是 啊啊啊啊 柔柔弱弱爱爱爱这种格式
      我想把这样的标题开头 4个汉字+一个空格 批量删除 语句该怎么写啊?
     什么字符集?
     utf8
     delete from tt where if(LEFT(标题,1) REGEXP '[^ -~]',1,0)
     +IF(MID(标题,2,1) REGEXP '[^ -~]',1,0)+
     IF(MID(标题,3,1) REGEXP '[^ -~]',1,0)+
     IF(MID(标题,4,1) REGEXP '[^ -~]',1,0)=4 and 
     MID(标题,5,1)=' '