rawQuery

abstract fun rawQuery(sql: String, selectionArgs: Array<String>): Cursor

Runs the provided SQL and returns a Cursor over the result set.

Return

A Cursor object, which is positioned before the first entry. Note that Cursors are not synchronized, see the documentation for more details.

Parameters

sql

the SQL query. The SQL string must not be ; terminated

selectionArgs

You may include ?s in where clause in the query, which will be replaced by the values from selectionArgs. The values will be bound as Strings.