'Database'에 해당되는 글 1건

  1. 2010/02/13 Database 노트 Chapter 3 (1)
관심사2010/02/13 19:47
  1. Data Integrity Constraints: a condition specified on a database schema and restricts the data that can be stored in an instance of the database.
    1. Key Constraints : a statement that a certain minimal subset of the fields of a relation is a unique identifier for a tuple.
      • SUPER KEY : a set of fields that contains a key (ex. {sid, name})
      • PRIMARY KEY : Primary key column의 NOT NULL(반드시 입력이 되어야 )속성과 NO DUPLICATE(절대 중복이 되면 안됨) 속성을 보장해 주며 자동으로 unique index를 생성시켜 준다.
      • UNIQUE : 한 column 혹은 여러 column의 조합이 다른 row와 중복되지 않도록 보장해 주며 자동으로 unique index를 생성시켜 준다.
    2. Foreign Key Constraints (Referential Integrity)
      • 두 개 이상의 테이블관계를 표현할 때 이용
      • 테이블 내의 한 열의 필드인 동시에 다른 테이블의 기본키인 열의 필드
    3. General Constraints



출처: http://blogfiles12.naver.net/data19/2006/6/28/107/my_comment_01-jinsol1.gif
ㅁㄹㄹㅇ

저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by Ides of March
TAG