Working with multiple databases?
(reposting swasheck's comment as reply)

sqlite3 database1.db
&gt; ATTACH DATABASE 'database2.db' AS database2;
&gt; INSERT INTO mytable SELECT * FROM database2.mytable;