How do I use prepared statements in SQlite in Android?

前端 未结 5 575
無奈伤痛
無奈伤痛 2020-11-22 04:17

How do I use prepared statements in SQlite in Android?

5条回答
  •  既然无缘
    2020-11-22 05:04

    To get a cursor, you can't use a compiledStatement. However, if you want to use a full prepared SQL statement, I recommend an adaptation of jbaez's method... Using db.rawQuery() instead of db.query().

提交回复
热议问题