Skip to content · ⁨본문 바로가기⁩

Tables, keys and relationships · ⁨테이블, 키 및 관계⁩

English

More than one table

Real databases split data across several tables. This lesson uses a small shop with two of them:

  • customer — one row per customer (id, name, city)
  • orders — one row per order (id, customer_id, order_date, total)

Storing the customer's name on every order would repeat it again and again. Keeping customers in their own table stores each one once.

한국어

여러 테이블

실제 데이터베이스는 데이터를 여러 테이블에 분산하여 저장합니다. 이 수업에서는 두 개의 테이블을 사용하는 작은 상점을 사용합니다:

  • customer — 고객당 한 행 (id, name, city)
  • orders — 주문당 한 행 (id, customer_id, order_date, total)

모든 주문에 고객의 이름을 저장하면 반복적으로 중복됩니다. 고객을 별도의 테이블에 보관하면 각 정보를 한 번만 저장합니다.

Handout · ⁨교재 자료⁩

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP