Executing multiple statements with SQLiteDatabase.execSQL

前端 未结 5 1531
暖寄归人
暖寄归人 2020-12-08 04:12

I\'ve followed a standard tutorial for building a database with Android. I\'ve created a class called DbHelper which extends SQLiteOpenHelper. I\'ve Overridden the create

5条回答
  •  孤街浪徒
    2020-12-08 05:02

    From the documentation of SQLiteDatabase and my experience in the past I think that it's not possible. But why don't you just split it up in single statements? It really is not a problem in your example. Or do you need it for a different use case?

提交回复
热议问题