update tablename set type=relapce(type,substring(type,3,1),'2')
where type is not null

解决方案 »

  1.   

    update tablename set type=left(type,len(type)-1)+'2'
    where type is not null
      

  2.   

    update tablename set type=left(type,len(type)-1)+'2'
    where isnull(type,'')<>''
      

  3.   

    dim sqlstr as string
    splstr="update tablename set type=left(type,2)+'2'"
      

  4.   

    dim sqlstr as string
    splstr="update tablename set type=left(type,2)+'2' where type is not null"