SQLiteQueryBuilder.BuildQuery Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
BuildQuery(String[], String, String[], String, String, String, String) |
Obsolete.
This member is deprecated. |
BuildQuery(String[], String, String, String, String, String) |
Construct a |
BuildQuery(String[], String, String[], String, String, String, String)
Caution
deprecated
This member is deprecated.
[Android.Runtime.Register("buildQuery", "([Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetBuildQuery_arrayLjava_lang_String_Ljava_lang_String_arrayLjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public virtual string? BuildQuery (string[]? projectionIn, string? selection, string[]? selectionArgs, string? groupBy, string? having, string? sortOrder, string? limit);
[<Android.Runtime.Register("buildQuery", "([Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetBuildQuery_arrayLjava_lang_String_Ljava_lang_String_arrayLjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member BuildQuery : string[] * string * string[] * string * string * string * string -> string
override this.BuildQuery : string[] * string * string[] * string * string * string * string -> string
Parameters
- 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[]
- 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
the resulting SQL SELECT
statement
- Attributes
Remarks
This member is deprecated. This method's signature is misleading since no SQL parameter substitution is carried out. The selection arguments parameter does not get used at all. To avoid confusion, call #buildQuery(String[], String, String, String, String, String)
instead.
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.
Applies to
BuildQuery(String[], String, String, String, String, String)
Construct a SELECT
statement suitable for use in a group of
SELECT
statements that will be joined through UNION
operators
in buildUnionQuery.
[Android.Runtime.Register("buildQuery", "([Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetBuildQuery_arrayLjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual string? BuildQuery (string[]? projectionIn, string? selection, string? groupBy, string? having, string? sortOrder, string? limit);
[<Android.Runtime.Register("buildQuery", "([Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetBuildQuery_arrayLjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member BuildQuery : string[] * string * string * string * string * string -> string
override this.BuildQuery : string[] * string * string * string * string * string -> string
Parameters
- 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.
- 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
the resulting SQL SELECT
statement
- Attributes
Remarks
Construct a SELECT
statement suitable for use in a group of SELECT
statements that will be joined through UNION
operators in buildUnionQuery.
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.