student

테이블 (5)

과목 정보 (subject)

  • 과목 번호 (sub_no) — int(10) — 기본 키 — NOT NULL — PK
  • 과목명 (sub_name) — varchar(10) — not null
  • 정원수 (sub_full) — int(3) — not null
  • 강의 학기 (sub_sem) — ENUM('1','2') — not null
  • 강의호실 (sub_room) — int(5) — not null
  • 시작시간 (sub_stt_time) — datetime — not null
  • 종료시간 (sub_end_time) — datetime — not null
  • 필수이수 (sub_nec) — ENUM('Y','N') — not null
  • 교재 번호 (book_no) — int(8) — 외래 키 → 교재 정보.교재 번호 — NOT NULL — FK
  • 교수 번호 (tc_no) — int(4) — 외래 키 → 교수 정보.교수 번호 — NOT NULL — FK

교수 정보 (teacher)

  • 교수 번호 (tc_no) — int(4) — 기본 키 — NOT NULL — PK
  • 이름 (tc_name) — varchar(20) — not null
  • 생년월일 (tc_age) — date — not null
  • 성별 (tc_gender) — ENUM('남자','여자') — not null
  • 학위번호 (tc_deg_no) — int(10) — not null
  • 이메일 (tc_email) — varchar(20) — not null
  • 직급 (tc_lev) — varchar(10) — not null
  • 임용일 (tc_app) — date — not null

교재 정보 (book)

  • 교재 번호 (book_no) — int(8) — 기본 키 — NOT NULL — PK
  • 교재명 (book_name) — varchar(15) — not null

학생 성적 (student_grade)

  • 학생 번호 (stu_no) — int(8) — 외래 키 → 학생 정보.학생 번호 — NOT NULL — PK,FK
  • 과목 번호 (sub_no) — int(10) — 외래 키 → 과목 정보.과목 번호 — NOT NULL — PK,FK
  • 점수 (stg_grade) — int(3) — not null
  • 과목 석차 (stg_rank) — int(5) — not null
  • 이수일 (stg_comp_date) — date — not null

학생 정보 (student)

  • 학생 번호 (stu_no) — int(8) — 기본 키 — NOT NULL — PK
  • 이름 (stu_name) — varchar(20) — not null
  • 생년월일 (stu_birth_date) — date — not null
  • 성별 (stu_gender) — ENUM('남자','여자') — not null
  • 주소 (stu_addr) — varchar(100) — not null
  • 전화번호 (stu_num) — char(11) — not null
  • 입학일 (stu_start_date) — date — not null
  • 졸업일 (stu_end_date) — date — default(9999-01-01) ,not null
  • 재학상태 (stu_status) — ENUM('재학중',졸업') — not null