sql:update table set col=
     replace(col,'1','2')

解决方案 »

  1.   

    update table
    set 列 = '2'+right(rtrim(列),len(rtrim(列))-1)--先备份!
      

  2.   

    OR:
    update table set col=
         '2.'+right(col,3)
      

  3.   

    update a01 set aa=
         '2'+ substring(aa,2,len(aa))
      

  4.   

    --更快
    update a01 set aa=
         '2'+ substring(aa,2,10)
      

  5.   

    update db1 fieldname set fieldname=("2." + SUBSTRING(fieldname,1,LEN(fieldname)-2)
      

  6.   

    update a01 set aa=
         '2'+ substring(aa,2,你的字符长度)
      

  7.   

    update a01 set aa=
         '2'+ substring(aa,2,字符长度)
      

  8.   

    update a01 
    set fieldname=("2." + SUBSTRING(fieldname,3,LEN(fieldname)-2)
    where fieldname like '1.%'