如何用sql脚本创建access数据库带union的查询语句
如题:
access中有一个查询:
select * from a
union
select * frmo b
请问如何通过脚本来创建这个查询
------解决方案--------------------create view v_getdata as
SELECT * FROM (SELECT * FROM BA UNION SELECT * FROM BB)
------解决方案----------------------用子查询
create view v_getdata
as
select *
from
(
select * from A
union
select * from B
) as t