I have two databases one is SQLite db_1
and the other SQLCipher db_2
. I want to move a table from db_1
to db_2
.
Since I am using SQLCipher in one of the databases, I can't ATTACH
the databases and copy Table and its contents from one to the other.
Is it possible with either database queries or Android Code or both to somehow move the table to db_2
and then delete Table in db_1
in onUpgrade()
.
Note :
When trying to ATTACH
the database I got the following error
Failure 26 (file is encrypted or is not a database) on 0xab61cb98 when executing 'ATTACH DATABASE '/data/data/com.example/databases/DATABASE.db' AS DB;'