DatabaseUtils.QueryNumEntries Method

Definition

Overloads

QueryNumEntries(SQLiteDatabase, String)

Query the table for the number of rows in the table.

QueryNumEntries(SQLiteDatabase, String, String)

Query the table for the number of rows in the table.

QueryNumEntries(SQLiteDatabase, String, String, String[])

Query the table for the number of rows in the table.

QueryNumEntries(SQLiteDatabase, String)

Query the table for the number of rows in the table.

[Android.Runtime.Register("queryNumEntries", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;)J", "")]
public static long QueryNumEntries (Android.Database.Sqlite.SQLiteDatabase? db, string? table);
[<Android.Runtime.Register("queryNumEntries", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;)J", "")>]
static member QueryNumEntries : Android.Database.Sqlite.SQLiteDatabase * string -> int64

Parameters

db
SQLiteDatabase

the database the table is in

table
String

the name of the table to query

Returns

the number of rows in the table

Attributes

Remarks

Query the table for the number of rows in the table.

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

QueryNumEntries(SQLiteDatabase, String, String)

Query the table for the number of rows in the table.

[Android.Runtime.Register("queryNumEntries", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;)J", "")]
public static long QueryNumEntries (Android.Database.Sqlite.SQLiteDatabase? db, string? table, string? selection);
[<Android.Runtime.Register("queryNumEntries", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;)J", "")>]
static member QueryNumEntries : Android.Database.Sqlite.SQLiteDatabase * string * string -> int64

Parameters

db
SQLiteDatabase

the database the table is in

table
String

the name of the table to query

selection
String

A filter declaring which rows to return, formatted as an SQL WHERE clause (excluding the WHERE itself). Passing null will count all rows for the given table

Returns

the number of rows in the table filtered by the selection

Attributes

Remarks

Query the table for the number of rows in the table.

Java documentation for android.database.DatabaseUtils.queryNumEntries(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

QueryNumEntries(SQLiteDatabase, String, String, String[])

Query the table for the number of rows in the table.

[Android.Runtime.Register("queryNumEntries", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)J", "")]
public static long QueryNumEntries (Android.Database.Sqlite.SQLiteDatabase? db, string? table, string? selection, string[]? selectionArgs);
[<Android.Runtime.Register("queryNumEntries", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)J", "")>]
static member QueryNumEntries : Android.Database.Sqlite.SQLiteDatabase * string * string * string[] -> int64

Parameters

db
SQLiteDatabase

the database the table is in

table
String

the name of the table to query

selection
String

A filter declaring which rows to return, formatted as an SQL WHERE clause (excluding the WHERE itself). Passing null will count all rows for the given table

selectionArgs
String[]

You may include ?s in selection, which will be replaced by the values from selectionArgs, in order that they appear in the selection. The values will be bound as Strings.

Returns

the number of rows in the table filtered by the selection

Attributes

Remarks

Query the table for the number of rows in the table.

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