0

I'm developing an android application which use SQLite database. The question is: can I import an external script (i.e. script.sql) which can upgrade the structure of SLQLite database in my application?

1 Answer 1

1

Why not, SQLiteDatabase class has "rawQuery" method which can perfrom any valid sql commands. So you only need to create the database, read your script from file and feed it to SQLiteDatabase instance

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.