DatabaseUtils.SqlEscapeString(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.
SQL-escape a string.
[Android.Runtime.Register("sqlEscapeString", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? SqlEscapeString(string? value);
[<Android.Runtime.Register("sqlEscapeString", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
static member SqlEscapeString : string -> string
Parameters
- value
- String
The string value to quote as an SQL string literal. Must not be null.
Returns
The value enclosed in single quotes, with each embedded single quote doubled. This is SQL literal text, not an identifier or a bound parameter value.
- Attributes
Remarks
SQL-escape a string.
Java documentation for android.database.DatabaseUtils.sqlEscapeString(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.