SQLiteDatabase.rawQuery

1 篇文章 / 0 new
author
SQLiteDatabase.rawQuery

public Cursor rawQuery (String sql, String[] selectionArgs)

Runs the provided SQL and returns a <a href="../../../../reference/android/database/Cursor.html">Cursor</a> over the result set.

Parameters
sql直接使用完整的 SQL 語法進行查詢
selectionArgsYou 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.
Free Web Hosting