How to import a . sql file to an android database?

Asked

Viewed 66 times

2

I have a file. sql that contains multiple Inserts and I needed my application to read that file and make those Inserts into a table that I have created. Is there any way ?

  • 1

    See help: http://stackoverflow.com/questions/8199138/android-how-to-exec-a-sql-file-in-sqlitedatabase

1 answer

1


I believe that an alternative is to import this file in the original BD (mysql, postgres...) and export in spreadsheet. After that, import this spreadsheet into android SGDB.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.