Created
October 23, 2017 10:05
-
-
Save zaghaghi/1bd4bb4c65f0cbfdd3ead0c40f9ff897 to your computer and use it in GitHub Desktop.
How to insert table data from another database
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
sqlite> ATTACH "transcription.gt.db" as gt; | |
sqlite> select count(*) from gt.transcriptions; | |
10417 | |
sqlite> select count(*) from transcriptions; | |
0 | |
sqlite> insert into transcriptions select * from gt.transcriptions; | |
sqlite> select count(*) from transcriptions; | |
10417 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment