create proc sp_kk
as
select * into #temp1 from bonstableupdate  from bonstable set csacstype='首期' where csacstype='ic'
drop table #temp1
然后在
exec sp_kk

解决方案 »

  1.   

    #temp1没用,所以去掉那两句,不就剩下这句了
    update  from bonstable set csacstype='首期' where csacstype='ic'
      

  2.   

    不好意思老腌昏花是:
    select * into #temp1 from bonstableupdate  from #temp1 set csacstype='首期' where csacstype='ic'
    drop table #temp1
      

  3.   

    呵呵,可能你是要这个:select 除csacstype外的其他字段,
           case csacstype when 'ic' then '首期' else csacstype end as csacstype
    from bonstable