Created
January 7, 2021 22:42
-
-
Save evallesv/33f9d1e112e5eb0105d988cd610ed42e to your computer and use it in GitHub Desktop.
Transfer data between Sqlite databases (FAST)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Having sqlite command line installed from https://sqlite.org/download.html | |
sqlite3 destination.sqlite #open database | |
ATTACH origin.sqlite as orig #attach the origin database | |
.databases #see all databases | |
.tables #see all tables | |
BEGIN TRANSACTION | |
INSERT INTO destTable SELECT * FROM orig.originTable; | |
END TRANSACTION; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment