The moment you add a new column, you alter the structure, the data flow, and the performance profile of your system. This change seems small. It is not. Handled well, it accelerates development. Handled poorly, it slows every query and forces migrations in the dark.
Adding a new column in SQL begins with definition. In MySQL, PostgreSQL, or any relational database, you use ALTER TABLE to modify structure without dropping existing data. For example:
ALTER TABLE users
ADD COLUMN last_login TIMESTAMP NULL;
This is simple in syntax but complex in consequence. A new database column must match data types wisely. Choose NULL or NOT NULL based on real constraints. Know if a default value makes sense. Avoid backfilling millions of rows without planning, which can lock tables or cause downtime.
Before deployment, review your indexing strategy. Adding an index to the new column can speed up reads, but it also slows writes. In PostgreSQL, consider CONCURRENTLY to avoid blocking. For MySQL, use ALGORITHM=INPLACE when possible to reduce lock time.