Skip to content
Theory · Creating tables · lesson 6 of 11

ALTER and DROP

Tables live for years, and what they must hold changes. The chain has decided to store the number of seats in each shop and to stop storing the opening date. Creating the shops table again is not an option: it already has rows, and employees and orders reference them.

In this lesson

  • Adding and dropping a column
  • Adding a constraint
  • Dropping a table
  • Common mistake
  • Key points