쇼핑몰
테이블 (4)
고객 아이디 (member)
- 고객 아이디 (userid) — 기본 키 — NOT NULL
- 우편 번호 (zipcode) — number(5) — 외래 키 → 우편번호.우편 번호
- name (Key2) — NOT NULL
- pass (Key3) — NOT NULL
- phone (Key4) — NOT NULL
- addr (Key) — NOT NULL
- regdate (Key5) — NOT NULL
- zipcode (Key6) — NOT NULL
상품 (product)
- p_code (Key) — 기본 키 — NOT NULL
- p_name (Field)
- p_price (Field2)
- Field3
- Field4
우편번호 (post)
- 우편 번호 (zipcode) — number(5) — 기본 키
- 시도 (sido) — varchar2(20)
- 번지 (bunji) — varchar2(20)
- 동 (dong) — varchar2(20)
- 구군 (gugun) — varcahr2(20)
주문 정보 (orber)
- o_code (Key) — 기본 키 — NOT NULL
- o_amount (Field)
- o_date (Field2)
- 고객 아이디 (userid) — 외래 키 → 고객 아이디.고객 아이디 — NOT NULL
- p_code (Key2) — 외래 키 → 상품.p_code — NOT NULL