求SQL语句将 A表中的a列,B表中的b列,插入到C表的a,b两列中
求SQL语句将   A表中的a列,B表中的b列,插入到C表的a,b两列中
------解决方案--------------------declare @t table(id int identity(1,1),name varchar(20)) 
 insert into @t 
 select a from A 
 declare @d table(id int identity(1,1),names varchar(20)) 
 insert into @d 
 select b from B 
 insert into C 
 select A.name,B.names from @t inner join @b on A.id=B.id