본문 바로가기
English
Changing a table's structure

A table's design is not fixed. ALTER TABLE … ADD adds a new column to an existing table:

ALTER TABLE product ADD weight DECIMAL(5, 2);

Existing rows get NULL in the new column until you fill them in.

ALTER TABLE student ADD email TEXT adds an email column, NULL for the existing rows

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP