rawQuery("SELECT id, name FROM people WHERE name = ? AND id = ?", new String[] {"David", "2"});
You pass a string array with an equal number of elements as you have “?”
More Related Contents:
- get Feature item to list View
- When does SQLiteOpenHelper onCreate() / onUpgrade() run?
- How to store image in SQLite database
- Android SQLite database: slow insertion
- Where does Android emulator store SQLite database?
- Android SQLite Example [closed]
- Android database encryption
- How to escape special characters like ‘ in sqlite in android
- Use a local database in Xamarin
- Android SQLite issue – table … has no column named
- How to add new Column to Android SQLite Database?
- Android error – close() was never explicitly called on database
- What is a Full Android Database Helper class for an existing SQLite database? [closed]
- Exporting SQLite Database to csv file in android
- What is a maximum size of SQLite database on Android?
- How to save images into Database
- Full text search example in Android
- select distinct value in android sqlite
- A pre-populated database does not work at API 28 throws “no such table” exception
- Get last inserted value from sqlite database Android
- Could not allocate CursorWindow
- When should I do certain SQLite operations on another thread(not the main thread)?
- Changing values from Cursor using SimpleCursorAdapter
- SQLite exception: Database is locked issue
- How can I reset a autoincrement sequence number in sqlite
- Sqlite issues with HTC Desire HD
- difference between rawquery and execSQL in android sqlite database
- Browse SQLite database from Android Studio [closed]
- Get SQLite database from Android app
- When to close db connection on android? Every time after your operation finished or after your app exit