Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Modifying table structure
7. Adding a column
Adding NOT NULL constraints
Summary

Instruction

Good job! Now, let's take a look at how we can add a new column to an existing table:

ALTER TABLE flight ADD COLUMN duration_minutes integer;

The statement above adds a new column named duration_minutes as the last column in the given table.

Exercise

Add a column area of type integer to the store table.

Stuck? Here's a hint!

Type:

ALTER TABLE store ADD COLUMN area integer;