In my android app, existing database using from asset.
Assume that I have a database in asset folder and name is "a.sqlite". and it has a table which is name "t". and I want to download a table which is name "t2.sql" from my server. after downloading "t2.sql" I want to insert all values of "t2" table to "t" table in android programmatically
Assume that this is main database table
| id | name | dt1 | dt2 | dt3 |
| 1 | Paul | 21 | 98 | 91 |
| 2 | John | 22 | 44 | 11 |
| 3 | George| 21 | 31 | 22 |
| 4 | Ringo | 20 | 10 | 15 |
and I want to insert this sql table to main table
| id | name | dt1 | dt2 | dt3 |
| 1 | Paul_2 | 21 | 98 | 91 |
| 2 | John_2 | 22 | 44 | 11 |
| 3 | George_2| 21 | 31 | 22 |
| 4 | Ringo_2 | 20 | 10 | 15 |
Also my sql table has CREATE TABLE statement and BEGIN TRANSACTION/COMMIT statements. It should be very easy because in Firefox SQLite manager I am using just import and this table join the my database. but how I can do in android I dont know