Udostępnij za pośrednictwem


DatabaseUtils.StringForQuery Method

Definition

Overloads

StringForQuery(SQLiteStatement, String[])

Utility method to run the pre-compiled query and return the value in the first column of the first row.

StringForQuery(SQLiteDatabase, String, String[])

Utility method to run the query on the db and return the value in the first column of the first row.

StringForQuery(SQLiteStatement, String[])

Utility method to run the pre-compiled query and return the value in the first column of the first row.

[Android.Runtime.Register("stringForQuery", "(Landroid/database/sqlite/SQLiteStatement;[Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? StringForQuery (Android.Database.Sqlite.SQLiteStatement? prog, string[]? selectionArgs);
[<Android.Runtime.Register("stringForQuery", "(Landroid/database/sqlite/SQLiteStatement;[Ljava/lang/String;)Ljava/lang/String;", "")>]
static member StringForQuery : Android.Database.Sqlite.SQLiteStatement * string[] -> string

Parameters

selectionArgs
String[]

Returns

Attributes

Remarks

Utility method to run the pre-compiled query and return the value in the first column of the first row.

Java documentation for android.database.DatabaseUtils.stringForQuery(android.database.sqlite.SQLiteStatement, 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

StringForQuery(SQLiteDatabase, String, String[])

Utility method to run the query on the db and return the value in the first column of the first row.

[Android.Runtime.Register("stringForQuery", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? StringForQuery (Android.Database.Sqlite.SQLiteDatabase? db, string? query, string[]? selectionArgs);
[<Android.Runtime.Register("stringForQuery", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;", "")>]
static member StringForQuery : Android.Database.Sqlite.SQLiteDatabase * string * string[] -> string

Parameters

query
String
selectionArgs
String[]

Returns

Attributes

Remarks

Utility method to run the query on the db and return the value in the first column of the first row.

Java documentation for android.database.DatabaseUtils.stringForQuery(android.database.sqlite.SQLiteDatabase, java.lang.String, 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