Adding a new column is one of the fastest ways to change what your data can do. In SQL, the ALTER TABLE statement makes it possible. You define the new column name, data type, and constraints. The database updates its schema instantly in most cases, though large datasets may lock or rebuild indexes.
A simple example in PostgreSQL:
ALTER TABLE orders
ADD COLUMN shipped_at TIMESTAMP;
Here, shipped_at is ready to store values without affecting pre-existing rows. If you want a default value and not-null constraint:
ALTER TABLE orders
ADD COLUMN shipped_at TIMESTAMP NOT NULL DEFAULT NOW();
Be careful with defaults on large tables. Some databases rewrite the whole table, which can cause downtime. For production systems, test the change in staging. Roll out the schema migration with migrations tooling. Always review how a new column will work with indexes, queries, and application code.