DatabaseUtils.QueryNumEntries Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
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
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.
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
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.
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.