How to Merge Multiple Database files in SQLite?
问题 I have multiple database files which exist in multiple locations with exactly similar structure. I understand the attach function can be used to connect multiple files to one database connection, however, this treats them as seperate databases. I want to do something like: SELECT uid, name FROM ALL_DATABASES.Users; Also, SELECT uid, name FROM DB1.Users UNION SELECT uid, name FROM DB2.Users ; is NOT a valid answer because I have an arbitrary number of database files that I need to merge.