How can I merge many SQLite databases?

To summarize from the Nabble post in DavidM’s answer:

attach 'c:\test\b.db3' as toMerge;           
BEGIN; 
insert into AuditRecords select * from toMerge.AuditRecords; 
COMMIT; 
detach toMerge;

Repeat as needed.

Note: added detach toMerge; as per mike’s comment.

Leave a Comment