表A:
pluid   pluname  dsc01      aaa       bb
求表B:
pluid    pluname
 01        aaabb

解决方案 »

  1.   

    declare @t table(pluid varchar(10),pluname varchar(10),dsc varchar(10))
    insert into @t select '01'      ,'aaa'       ,'bb'
    select pluid,(pluname+dsc) as pluname from @t
      

  2.   

    select pluid,pluname+dsc as pluname into 表B from 表A
      

  3.   

    select pluid,pluname + dsc as pluname into B from A
      

  4.   

    Select pluid,pluname+dsc As pluname From A
      

  5.   

    select pluid,pluname=isnull(pluname,'')+isnull(dsc,'') 
    from 表A
      

  6.   

    select pluid,[pluname]=pluname+dsc from 表A
      

  7.   

    update B set pluname=A.pluname+A.dsc from A,B where A.pluid =B.pluid