update yourtable 
 set code=case code 
    when 1 then '美国' 
    when 2 then '中国' 
    when 3 then '法国'
 end

解决方案 »

  1.   

    select case 
            when code=1 then '美国'
            when code=2 then '中国'
            when code=3 then '法国'
          end
       from 表
      

  2.   

    update yourtable 
     set code=case code 
        when 1 then '美国' 
        when 2 then '中国' 
        when 3 then '法国'
     end
    或者拥游标,这就要看具体情况了