次の方法で共有


SQLiteQueryBuilder.Query Method

Definition

Overloads

Query(SQLiteDatabase, String[], String, String[], String, String, String)

Perform a query by combining all current settings and the information passed into this method.

Query(SQLiteDatabase, String[], String, String[], String, String, String, String)

Perform a query by combining all current settings and the information passed into this method.

Query(SQLiteDatabase, String[], String, String[], String, String, String, String, CancellationSignal)

Perform a query by combining all current settings and the information passed into this method.

Query(SQLiteDatabase, String[], String, String[], String, String, String)

Perform a query by combining all current settings and the information passed into this method.

[Android.Runtime.Register("query", "(Landroid/database/sqlite/SQLiteDatabase;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;", "GetQuery_Landroid_database_sqlite_SQLiteDatabase_arrayLjava_lang_String_Ljava_lang_String_arrayLjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual Android.Database.ICursor? Query (Android.Database.Sqlite.SQLiteDatabase? db, string[]? projectionIn, string? selection, string[]? selectionArgs, string? groupBy, string? having, string? sortOrder);
[<Android.Runtime.Register("query", "(Landroid/database/sqlite/SQLiteDatabase;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;", "GetQuery_Landroid_database_sqlite_SQLiteDatabase_arrayLjava_lang_String_Ljava_lang_String_arrayLjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member Query : Android.Database.Sqlite.SQLiteDatabase * string[] * string * string[] * string * string * string -> Android.Database.ICursor
override this.Query : Android.Database.Sqlite.SQLiteDatabase * string[] * string * string[] * string * string * string -> Android.Database.ICursor

Parameters

db
SQLiteDatabase

the database to query on

projectionIn
String[]

A list of which columns to return. Passing null will return all columns, which is discouraged to prevent reading data from storage that isn't going to be used.

selection
String

A filter declaring which rows to return, formatted as an SQL WHERE clause (excluding the WHERE itself). Passing null will return all rows for the given URL.

selectionArgs
String[]

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.

groupBy
String

A filter declaring how to group rows, formatted as an SQL GROUP BY clause (excluding the GROUP BY itself). Passing null will cause the rows to not be grouped.

having
String

A filter declare which row groups to include in the cursor, if row grouping is being used, formatted as an SQL HAVING clause (excluding the HAVING itself). Passing null will cause all row groups to be included, and is required when row grouping is not being used.

sortOrder
String

How to order the rows, formatted as an SQL ORDER BY clause (excluding the ORDER BY itself). Passing null will use the default sort order, which may be unordered.

Returns

a cursor over the result set

Attributes

Remarks

Perform a query by combining all current settings and the information passed into this method.

Java documentation for android.database.sqlite.SQLiteQueryBuilder.query(android.database.sqlite.SQLiteDatabase, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

  • <xref:Android.Content.ContentResolver.Query(Android.Net.Uri%2c+System.String%5b%5d%2c+System.String%5b%5d%2c+System.String%5b%5d%2c+System.String%5b%5d)>

Applies to

Query(SQLiteDatabase, String[], String, String[], String, String, String, String)

Perform a query by combining all current settings and the information passed into this method.

[Android.Runtime.Register("query", "(Landroid/database/sqlite/SQLiteDatabase;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;", "GetQuery_Landroid_database_sqlite_SQLiteDatabase_arrayLjava_lang_String_Ljava_lang_String_arrayLjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual Android.Database.ICursor? Query (Android.Database.Sqlite.SQLiteDatabase? db, string[]? projectionIn, string? selection, string[]? selectionArgs, string? groupBy, string? having, string? sortOrder, string? limit);
[<Android.Runtime.Register("query", "(Landroid/database/sqlite/SQLiteDatabase;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;", "GetQuery_Landroid_database_sqlite_SQLiteDatabase_arrayLjava_lang_String_Ljava_lang_String_arrayLjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member Query : Android.Database.Sqlite.SQLiteDatabase * string[] * string * string[] * string * string * string * string -> Android.Database.ICursor
override this.Query : Android.Database.Sqlite.SQLiteDatabase * string[] * string * string[] * string * string * string * string -> Android.Database.ICursor

Parameters

db
SQLiteDatabase

the database to query on

projectionIn
String[]

A list of which columns to return. Passing null will return all columns, which is discouraged to prevent reading data from storage that isn't going to be used.

selection
String

A filter declaring which rows to return, formatted as an SQL WHERE clause (excluding the WHERE itself). Passing null will return all rows for the given URL.

selectionArgs
String[]

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.

groupBy
String

A filter declaring how to group rows, formatted as an SQL GROUP BY clause (excluding the GROUP BY itself). Passing null will cause the rows to not be grouped.

having
String

A filter declare which row groups to include in the cursor, if row grouping is being used, formatted as an SQL HAVING clause (excluding the HAVING itself). Passing null will cause all row groups to be included, and is required when row grouping is not being used.

sortOrder
String

How to order the rows, formatted as an SQL ORDER BY clause (excluding the ORDER BY itself). Passing null will use the default sort order, which may be unordered.

limit
String

Limits the number of rows returned by the query, formatted as LIMIT clause. Passing null denotes no LIMIT clause.

Returns

a cursor over the result set

Attributes

Remarks

Perform a query by combining all current settings and the information passed into this method.

Java documentation for android.database.sqlite.SQLiteQueryBuilder.query(android.database.sqlite.SQLiteDatabase, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

  • <xref:Android.Content.ContentResolver.Query(Android.Net.Uri%2c+System.String%5b%5d%2c+System.String%5b%5d%2c+System.String%5b%5d%2c+System.String%5b%5d)>

Applies to

Query(SQLiteDatabase, String[], String, String[], String, String, String, String, CancellationSignal)

Perform a query by combining all current settings and the information passed into this method.

[Android.Runtime.Register("query", "(Landroid/database/sqlite/SQLiteDatabase;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/CancellationSignal;)Landroid/database/Cursor;", "GetQuery_Landroid_database_sqlite_SQLiteDatabase_arrayLjava_lang_String_Ljava_lang_String_arrayLjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Landroid_os_CancellationSignal_Handler")]
public virtual Android.Database.ICursor? Query (Android.Database.Sqlite.SQLiteDatabase? db, string[]? projectionIn, string? selection, string[]? selectionArgs, string? groupBy, string? having, string? sortOrder, string? limit, Android.OS.CancellationSignal? cancellationSignal);
[<Android.Runtime.Register("query", "(Landroid/database/sqlite/SQLiteDatabase;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/os/CancellationSignal;)Landroid/database/Cursor;", "GetQuery_Landroid_database_sqlite_SQLiteDatabase_arrayLjava_lang_String_Ljava_lang_String_arrayLjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Landroid_os_CancellationSignal_Handler")>]
abstract member Query : Android.Database.Sqlite.SQLiteDatabase * string[] * string * string[] * string * string * string * string * Android.OS.CancellationSignal -> Android.Database.ICursor
override this.Query : Android.Database.Sqlite.SQLiteDatabase * string[] * string * string[] * string * string * string * string * Android.OS.CancellationSignal -> Android.Database.ICursor

Parameters

db
SQLiteDatabase

the database to query on

projectionIn
String[]

A list of which columns to return. Passing null will return all columns, which is discouraged to prevent reading data from storage that isn't going to be used.

selection
String

A filter declaring which rows to return, formatted as an SQL WHERE clause (excluding the WHERE itself). Passing null will return all rows for the given URL.

selectionArgs
String[]

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.

groupBy
String

A filter declaring how to group rows, formatted as an SQL GROUP BY clause (excluding the GROUP BY itself). Passing null will cause the rows to not be grouped.

having
String

A filter declare which row groups to include in the cursor, if row grouping is being used, formatted as an SQL HAVING clause (excluding the HAVING itself). Passing null will cause all row groups to be included, and is required when row grouping is not being used.

sortOrder
String

How to order the rows, formatted as an SQL ORDER BY clause (excluding the ORDER BY itself). Passing null will use the default sort order, which may be unordered.

limit
String

Limits the number of rows returned by the query, formatted as LIMIT clause. Passing null denotes no LIMIT clause.

cancellationSignal
CancellationSignal

A signal to cancel the operation in progress, or null if none. If the operation is canceled, then OperationCanceledException will be thrown when the query is executed.

Returns

a cursor over the result set

Attributes

Remarks

Perform a query by combining all current settings and the information passed into this method.

Java documentation for android.database.sqlite.SQLiteQueryBuilder.query(android.database.sqlite.SQLiteDatabase, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String, java.lang.String, android.os.CancellationSignal).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

  • <xref:Android.Content.ContentResolver.Query(Android.Net.Uri%2c+System.String%5b%5d%2c+System.String%5b%5d%2c+System.String%5b%5d%2c+System.String%5b%5d)>

Applies to