SQLALTER TABLEDDLtutorial
What is ALTER TABLE in SQL? Changing table structure for beginners
ALTER TABLE is the SQL command for "change the structure of an existing table". Plain words: add a column, drop, rename, change a type, add and drop constraints. Plus the main pain on production — long table locks and the add → backfill → drop pattern for safe migrations.
PreviousНормализация базы данных: 1НФ, 2НФ, 3НФ и НФБКNextSQL CHECK Constraints: Enforcing Invariants in the Database
Related articles
Tasks on this topic
Create the projects TableDrop the departments TableAdd an Employee Email ColumnDrop the salary Column from employeesRename Column 'name' to 'full_name'Index for Employee Name Searches
All problem sets →
ALTER TABLEis the command for changing the structure of an existing table. Not the data inside (that'sUPDATE), but the columns and rules themselves.This article is currently in Russian. The full English translation is on the way.