DatabaseUtils.ConcatenateWhere(String, String) 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.
Concatenates two SQL WHERE clauses, handling empty or null values.
[Android.Runtime.Register("concatenateWhere", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? ConcatenateWhere(string? a, string? b);
[<Android.Runtime.Register("concatenateWhere", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")>]
static member ConcatenateWhere : string * string -> string
Parameters
- a
- String
The first SQL condition, without the WHERE keyword, or null or an empty string.
- b
- String
The second SQL condition, without the WHERE keyword, or null or an empty string.
Returns
b if a is null or empty; otherwise, a if b is null or empty; otherwise, (a) AND (b) with the two conditions substituted. The conditions are not escaped.
- Attributes
Remarks
Concatenates two SQL WHERE clauses, handling empty or null values.
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.