Język

DatabaseUtils.AppendValueToSql(StringBuilder, Object) Method

Definition

Appends an Object to an SQL string with the proper escaping, etc.

[Android.Runtime.Register("appendValueToSql", "(Ljava/lang/StringBuilder;Ljava/lang/Object;)V", "")]
public static void AppendValueToSql(Java.Lang.StringBuilder? sql, Java.Lang.Object? value);
[<Android.Runtime.Register("appendValueToSql", "(Ljava/lang/StringBuilder;Ljava/lang/Object;)V", "")>]
static member AppendValueToSql : Java.Lang.StringBuilder * Java.Lang.Object -> unit

Parameters

sql
StringBuilder

The SQL string builder to append to. Must not be null.

value
Object

The value to append: null becomes the SQL keyword NULL, a Java Boolean becomes 1 or 0, and other objects become quoted, escaped string values. This method appends SQL text; it does not bind a statement parameter.

Attributes

Remarks

Appends an Object to an SQL string with the proper escaping, etc.

Java documentation for android.database.DatabaseUtils.appendValueToSql(java.lang.StringBuilder, java.lang.Object).

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