我想通过一条SQL语句使三张表联合并生成新表d,我想用INTO方法
我写了一句不对:
select * into d from a union (select * into d from b union select * into d from c)
请大家帮忙
2 个解决方案
#1
select * into d from
( select * from a
union select * from b
union select * from c) as e
這樣做就可以了!
( select * from a
union select * from b
union select * from c) as e
這樣做就可以了!
#2
谢谢楼上的答复,我的问题已解决。希望以后多多指教.
#1
select * into d from
( select * from a
union select * from b
union select * from c) as e
這樣做就可以了!
( select * from a
union select * from b
union select * from c) as e
這樣做就可以了!
#2
谢谢楼上的答复,我的问题已解决。希望以后多多指教.