SQL ALTER TABLE
An SQL command that changes the structure of an existing table, such as adding, modifying or dropping a column. Existing rows are kept, and a new column is empty (NULL) for them.
Understanding SQL ALTER TABLE in QCE Digital Solutions Unit 3
What it does: MODIFY inside ALTER TABLE changes the definition of a column that already exists, and the existing rows stay in the table. ADD creates the column, and existing records have no value for it yet, so they hold NULL. Dropping a column permanently removes its data for every row. The other columns and rows remain. ALTER TABLE students ADD email VARCHAR(50); is correct because SQL needs the word TABLE to know a table structure is being changed.
Common mistakes: The column name must come before its data type. It should be ADD COLUMN Email VARCHAR(50);. SQL has no CHANGE TABLE command. To change the structure of an existing table you write ALTER TABLE Student.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 251–337) and word search (Modules 194–337).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
ALTER TABLEFill in the Blanks
Spot the Error
Student with a class code? Join your class →