Relasi

Allows you to define and edit a relation between two tables.

Untuk mengakses fungsi ini...

In a database file window, choose Tools - Relationships


Ikon Catatan

The update and delete options are only available if they are supported by the database used.


Tabel

If you create a new relation, you can select one table from each of the combo boxes in the top part of the dialog.

If you opened the Relations dialog for an existing relation by double-clicking the connection lines in the Relation window, then the tables involved in the relation cannot be modified.

Key fields

Defines the key fields for the relation.

The names of the tables selected for the link appear here as column names. If you click a field, you can use the arrow buttons to select a field from the table. Each relation is written in a row.

Update options

Here you can select options that take effect when there are changes to a primary key field.

Tanpa aksi

Specifies that any change made to a primary key does not affect other external key fields.

Updating cascade

Memperbarui semua ruas kunci eksternal juka nilai dari kunci utama yang sesuai sudah dimodifikasi (Pembaruan Cascading).

Set null

Jika kunci utama yang sesuai sudah dimodifikasi, gunakan opsi ini untuk mengatur nilai "IS NULL" pada semua ruas kunci eksternal. IS NULL berarti ruas tersebut kosong.

Atur bawaan

Juka kunci utama yang sesuai telah dimodifikasi, gunakan opsi ini untuk mengatur nilai bawaan ke semua ruas kunci eksternal. Selama pembuatan tabel yang sesuai, nilai bawaan dari ruas kunci eksternal akan didefinisikan ketika Anda menetapkan ruas properti.

Opsi Penghapusan

Di sini Anda dapat memilih opsi yang berlaku ketika kunci utama dihapus.

Tanpa aksi

Menentukan bahwa penghapusan kunci utama tidak akan berpengaruh pada ruas eksternal lainnya.

Hapus kaskade

Menentukan bahwa semua kunci utama eksternal akan dihapus jika Anda menghapus ruas kunci utama yang sesuai.

Ikon Peringatan

Ketika Anda menghapus ruas kunci utama dengan opsi Hapus kaskade, semua rekaman dari tabel lain yang memiliki kunci ini sebagai kunci asing mereka akan dihapus. Gunakan opsi ini dengan sangat hati-hati; mungkin sebagian besar pangkalan data dapat dihapus.


Set null

Jika Anda menghapus kunci utama yang sesuai, nilai "IS NULL" akan ditetapkan ke semua ruas kunci eksternal.

Set Default

Jika Anda menghapus kunci utama yang sesuai, nilai yang ditetapkan akan ditetapkan ke semua ruas kunci eksternal.