الانتقال إلى المحتوى
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