다음을 통해 공유


SQLiteStatement.SimpleQueryForString Method

Definition

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

[Android.Runtime.Register("simpleQueryForString", "()Ljava/lang/String;", "GetSimpleQueryForStringHandler")]
public virtual string? SimpleQueryForString ();
[<Android.Runtime.Register("simpleQueryForString", "()Ljava/lang/String;", "GetSimpleQueryForStringHandler")>]
abstract member SimpleQueryForString : unit -> string
override this.SimpleQueryForString : unit -> string

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 text value. For example, SELECT COUNT(*) FROM table;

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

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