250425_마당서점
테이블 (3)
고객 (customer)
- custid (name) — phone — 기본 키 — NOT NULL
- 1 (박지성) — 010-5000-0001
- 2 (김연아) — 000-6000-0001
- 3 (김연경) — 000-7000-0001
- 4 (추신수) — 000-8000-0001
- 5 (박세리) — null
도서 (book)
- 도서번호 (bookid) — int — 기본 키 — NOT NULL
- 도서이름 (bookname) — varchar(40)
- 출판사 (publisher) — varchar(50)
- 도서가격 (price) — int
주문 (orders)
- 주문번호 (orerid) — int — 기본 키 — NOT NULL
- 도서번호 (bookid) — int — 외래 키 → 도서.도서번호
- custid (name) — phone — 외래 키 → 고객.custid
- 판매금액 (saleprice) — int
- 판매일자 (orderdate) — date