SELECT * FROM main.t1, ex1.t1
ATTACH DATABASE 'backup.db' AS backup; CREATE TABLE backup.table1 AS SELECT * FROM table1; DETACH DATABASE backup;