日期:2014-05-17  浏览次数:20765 次

使用反射怎样将两个表的数据整合到到一个表中?
使用反射怎样将两个表的数据保存到一个表中?

------解决方案--------------------
asp:
select distinct s.sn,xinghao,addtime,name,mima into tbtemp1 from sn s,[info] where s.sn=info.sn

select info.sn,'未知' as xinghao,'未知' as addtime,name,mima into tbtemp2 from sn s,info where sn not in (select sn from sn)

drop table sn
select * into sn from tbtemp1,tbtemp2

drop table tbtemp1,tbtemp2

反射是C#语法 我很少用 上面的sql共你参考