共用方式為


IDatabaseMetaData.SupportsGetGeneratedKeys Method

Definition

Retrieves whether auto-generated keys can be retrieved after a statement has been executed

[Android.Runtime.Register("supportsGetGeneratedKeys", "()Z", "GetSupportsGetGeneratedKeysHandler:Java.Sql.IDatabaseMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool SupportsGetGeneratedKeys ();
[<Android.Runtime.Register("supportsGetGeneratedKeys", "()Z", "GetSupportsGetGeneratedKeysHandler:Java.Sql.IDatabaseMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SupportsGetGeneratedKeys : unit -> bool

Returns

true if auto-generated keys can be retrieved after a statement has executed; false otherwise <p>If true is returned, the JDBC driver must support the returning of auto-generated keys for at least SQL INSERT statements <p>

Attributes

Exceptions

a database error occurred.

Remarks

Retrieves whether auto-generated keys can be retrieved after a statement has been executed

Added in 1.4.

Java documentation for java.sql.DatabaseMetaData.supportsGetGeneratedKeys().

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