update t 
set f1=replace(f1,'吨','米')
where charindex(','+'吨'+',',','+f1+',')>0

解决方案 »

  1.   

    create table #t
    (
    f1 varchar(10)
    )
    insert into #t
    select '吨'   union all
    select '吨'   union all
    select '吨'   union all
    select '千米' union all
    select '台'update #t
    set f1=replace(f1,'吨','米')select *from #tf1         
    ---------- 



    千米
    台(5 row(s) affected)
      

  2.   

    update tb 
    set col=replace(col, '吨', '米')
    where charindex('吨', col)>0