관계형 데이터베이스 개념, 기본키, 외래키, constraints

박유진·2023년 10월 10일
0

movie

  • Set : 서로 다른 elements를 가지는 collection
  • relational dadabase : relational database model에 기반하여 구조화된 database -> 여러개의 relation으로 구성된다.
  • relation 특징
    중복된 tuple을 가질 수 없다.
    relation의 tuple을 식별하기 위해 attribute의 부분 집합을 key로 설정한다.
    relation에서 attribute의 이름은 중복되면 안된다.
    tuple에서 attribute의 순서는 중요하지 않다.
    attribute는 atomic(나눠질 수 없음)해야한다.
  • super key : relation에서 tuples을 unique하게 식별할 수 있는 attributes set
  • cadidate key : 어느 한 attribute라도 제거하면 unique하게 tuples를 식별할 수 없는 super key

0개의 댓글

관련 채용 정보