Compartir a través de


DatabaseUtils.LongForQuery Method

Definition

Overloads

LongForQuery(SQLiteDatabase, String, String[])

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

LongForQuery(SQLiteStatement, String[])

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

LongForQuery(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("longForQuery", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;[Ljava/lang/String;)J", "")]
public static long LongForQuery (Android.Database.Sqlite.SQLiteDatabase? db, string? query, string[]? selectionArgs);
[<Android.Runtime.Register("longForQuery", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;[Ljava/lang/String;)J", "")>]
static member LongForQuery : Android.Database.Sqlite.SQLiteDatabase * string * string[] -> int64

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.longForQuery(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

LongForQuery(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("longForQuery", "(Landroid/database/sqlite/SQLiteStatement;[Ljava/lang/String;)J", "")]
public static long LongForQuery (Android.Database.Sqlite.SQLiteStatement? prog, string[]? selectionArgs);
[<Android.Runtime.Register("longForQuery", "(Landroid/database/sqlite/SQLiteStatement;[Ljava/lang/String;)J", "")>]
static member LongForQuery : Android.Database.Sqlite.SQLiteStatement * string[] -> int64

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.longForQuery(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