public Cursor rawQuery (String sql, String[] selectionArgs)
Since: API Level 1
Runs the provided SQL and returns a <a href="../../../../reference/android/database/Cursor.html">Cursor</a>
over the result set.
Parameters
sql | 直接使用完整的 SQL 語法進行查詢 |
---|---|
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. |
Returns
- A
<a href="../../../../reference/android/database/Cursor.html">Cursor</a>
object, which is positioned before the first entry. Note that<a href="../../../../reference/android/database/Cursor.html">Cursor</a>
s are not synchronized, see the documentation for more details.