SQL Server Multiple Primary Key

Multiple Primary Key / Foreign Key diperlukan untuk menghubungkan 2 table dengan relasi many-to-many. Contohnya tabel manufacturer dan licensor.

Capture

Set primary key di tabel licensor_manufacturer untuk kolom licensor_id. Lalu klik kanan di manufacturer_id, pilih Indexes / Keys. Pilih columns, klik edit, lalu tambahkan kolom manufacturer_id.

Capture

Chandra Oemaryadi has written 244 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>