Bỏ qua nội dung
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

Tài liệu

Đăng nhập hoặc tạo tài khoản

IGCSE, A-Level & AP