0
我正在迁移所有与sql相关的代码以使用Sqlbrite。目前,我有一些代码看起来像这样:使用PreparedStatement和Sqlbrite
Cursor cursor;
String name;
String[] selectionArgs = { name };
cursor = database.query(MySQLiteHelper.TABLE_USER, new String[] {"id"}, "name = ? COLLATE NOCASE AND ", selectionArgs, null, null, null);
现在我需要使用SqlBrite,但我想用预处理语句吧。有什么办法可以做到这一点?我搜索了'SqlBrite PreparedStatement',但找不到任何关于此的内容。