본문 바로가기

CS 과목(CS科目)/데이터 베이스(データベース)

key(Feat. superKey, candidate key, foreign key)

super key : relation에서 tuple을 unique하게 식별할 수 있는 attribute SET .

 

candidate key : super key 중 어느 한 attribute라도 제거하면 unique하게 tuple을 식별할 수 있는 attribute set.

 

primary key : candidate key 중 실제로 선택된 key.

 

unique key(alternative key) : primary key가 아닌 candidate key.

foreign key : 다른 relation의 Primary Key를 참조하는 attribute Set