다음을 통해 공유


DatabaseMetaData.ImportedKeyRestrict Field

Definition

Caution

Use 'Java.Sql.IDatabaseMetaData.ImportedKeyRestrict'. This class will be removed in a future release.

For the column UPDATE_RULE, indicates that a primary key may not be updated if it has been imported by another table as a foreign key.

[Android.Runtime.Register("importedKeyRestrict")]
[System.Obsolete("Use 'Java.Sql.IDatabaseMetaData.ImportedKeyRestrict'. This class will be removed in a future release.")]
public const int ImportedKeyRestrict = 1;
[<Android.Runtime.Register("importedKeyRestrict")>]
[<System.Obsolete("Use 'Java.Sql.IDatabaseMetaData.ImportedKeyRestrict'. This class will be removed in a future release.")>]
val mutable ImportedKeyRestrict : int

Field Value

Value = 1
Attributes

Remarks

For the column UPDATE_RULE, indicates that a primary key may not be updated if it has been imported by another table as a foreign key. For the column DELETE_RULE, indicates that a primary key may not be deleted if it has been imported by another table as a foreign key.

A possible value for the columns UPDATE_RULE and DELETE_RULE in the ResultSet objects returned by the methods getImportedKeys, getExportedKeys, and getCrossReference.

Java documentation for java.sql.DatabaseMetaData.importedKeyRestrict.

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