比如a_123
a_222
aa_456改为
123
222
456

解决方案 »

  1.   

    详细说明
    是SQL语句中?
    select a_123 as 123 ....
      

  2.   

    update x set xx=right(a,length(a)-3) where a like "a_%";
      

  3.   

    update tb
    set col = substring(col,instr(col,'_'),len(col))
      

  4.   

    update tt set f1=REPLACE(f1,CONCAT(SUBSTRING_INDEX(f1,'_',1),'_'),'')
    自己解决更好
      

  5.   

    update tt set f1=REPLACE(f1,CONCAT(SUBSTRING_INDEX(f1,'_',1),'_'),'') where f1 like "a_%";
    自己解决更好
      

  6.   

    update xxx set col=substring_index(col,'_',-1)
      

  7.   

    select substring_index('a_222','_',-1);update tb_name set col_name=substring_index('col_name','_',-1);