MS-Access: Merge two tables “below” each other

妖精的绣舞 提交于 2019-12-05 09:18:55
SELECT *
FROM  Table1

UNION

SELECT *
FROM table2;

The question asks for non-distinct values while the current answers provide distinct values. The method below provides non-distinct values such that

SELECT *
FROM  Table1

UNION ALL

SELECT *
FROM table2;

which is often more efficient than the union method, particularly with large data sets (not having to compute the distinct).

If your goal is to append the second table to the first one, it can be achieved this way

INSERT INTO TABLE1 SELECT * FROM TABLE2;

The caveat with these other queries is that yes, they do the job, but create a third table with the joined data.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!