Advertisement
C_Volume2 Databases/ Data Access/ DAO/ ADO #68950

Join tables from multiple database

This is a very usefull code, which i want to share it with u all, as i am working on an accounting package, this package closes it files at year end, and places it in backup database files. But the running year may need reports based on old data, i.e. the date range from the close file. Here is the SQL which can be used to get data form multiply database file in the fastes possible manner.

AI

สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ซอร์สโค้ด
original-source
SELECT Table1.*
FROM Table1
UNION ALL
SELECT Table1.*
FROM Table1 IN "C:\Test\OldDatabase1.mdb"
UNION ALL
SELECT Table1.*
FROM Table1 IN "C:\Test\OldDatabase2.mdb"
UNION ALL
SELECT Table1.*
FROM Table1 IN "C:\Test\OldDatabase3.mdb";

ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine