Creating a new column is simple, but doing it right prevents future debt. In SQL, ALTER TABLE is the fastest way to add a column without rebuilding the entire schema. The core syntax is:
ALTER TABLE table_name
ADD COLUMN column_name data_type [constraints];
Choose the correct data type from the start. Changing types later often locks rows, triggers long-running migrations, or corrupts downstream data. If the column must be indexed, decide whether to create the index immediately or defer until off-peak hours to avoid blocking writes.
Nullability is not cosmetic. Adding a NOT NULL column without a default will fail on existing data. If you need strict constraints, add the column as nullable first, backfill the data in batches, and then alter it to NOT NULL. This reduces downtime and makes migration safe.