Skip to content Skip to sidebar Skip to footer

Android Sqlite Query With Integer Parameter

The documentation for SQLiteDatabase.query says that the selectionArgs will be bound as strings. What is the recommended way to perform a query with an integer parameter? Is it thi

Solution 1:

Second option with ? is the suggested way of using query method.

selectionArgs: You may include ?s in selection, which will be replaced by the values from selectionArgs, in order that they appear in the selection. The values will be bound as Strings.

Post a Comment for "Android Sqlite Query With Integer Parameter"