ALTER TABLE
Meaning in databases & SQL, with examples
In databases & SQL, ALTER TABLE means: The SQL statement that changes the structure of an existing table, for example to add, rename or drop a column or to add a constraint.
In Turkish: tablo değiştirme komutu, ALTER TABLE
How it is used
Part of DDL. On small tables it is instant, but on large production tables some ALTER TABLE operations rewrite or lock the whole table, so teams plan them carefully, run them at quiet hours or use online schema change tools.
Example sentences
The ALTER TABLE locked the orders table for ten minutes during peak hours.
Write an ALTER TABLE to add a NOT NULL column with a default value.
Common collocations
- ALTER TABLE ADD COLUMN
- ALTER TABLE statement
- run an ALTER TABLE
- online schema change
Related terms
This word in other fields
The same English word can have a different meaning in another field:
More terms: Tables, Schemas and Database Objects
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
