共用方式為


SQLiteQueryBuilder.AppendWhereEscapeString(String) Method

Definition

Append a chunk to the WHERE clause of the query.

[Android.Runtime.Register("appendWhereEscapeString", "(Ljava/lang/String;)V", "GetAppendWhereEscapeString_Ljava_lang_String_Handler")]
public virtual void AppendWhereEscapeString (string inWhere);
[<Android.Runtime.Register("appendWhereEscapeString", "(Ljava/lang/String;)V", "GetAppendWhereEscapeString_Ljava_lang_String_Handler")>]
abstract member AppendWhereEscapeString : string -> unit
override this.AppendWhereEscapeString : string -> unit

Parameters

inWhere
String

the chunk of text to append to the WHERE clause. it will be escaped to avoid SQL injection attacks

Attributes

Remarks

Append a chunk to the WHERE clause of the query. All chunks appended are surrounded by parenthesis and ANDed with the selection passed to #query. The final WHERE clause looks like:

WHERE (&lt;append chunk 1>&lt;append chunk2>) AND (&lt;query() selection parameter>)

Java documentation for android.database.sqlite.SQLiteQueryBuilder.appendWhereEscapeString(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.

Applies to