Compartir a través de


SQLiteStatement.SimpleQueryForLong Method

Definition

Execute a statement that returns a 1 by 1 table with a numeric value.

[Android.Runtime.Register("simpleQueryForLong", "()J", "GetSimpleQueryForLongHandler")]
public virtual long SimpleQueryForLong ();
[<Android.Runtime.Register("simpleQueryForLong", "()J", "GetSimpleQueryForLongHandler")>]
abstract member SimpleQueryForLong : unit -> int64
override this.SimpleQueryForLong : unit -> int64

Returns

The result of the query.

Attributes

Exceptions

if the query returns zero rows

Remarks

Execute a statement that returns a 1 by 1 table with a numeric value. For example, SELECT COUNT(*) FROM table;

Java documentation for android.database.sqlite.SQLiteStatement.simpleQueryForLong().

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