A new column changes the structure of your data without touching the rest of the table. In SQL, it starts with ALTER TABLE. You define the name, set the data type, and decide if null values are allowed. The command runs. Your schema shifts.
A clean new column means less risk of breaking existing queries. You plan indexes. You avoid naming collisions. You track migrations so every environment stays aligned. In PostgreSQL, a typical pattern looks like:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
This works in production if timed right. Large tables can lock. Use ADD COLUMN with default values sparingly. Some systems rewrite the entire table; others store the new data sparsely until updated.
In analytics workflows, a new column holds computed metrics or flags. In transactional systems, it stores state changes or identifiers. In event logs, it captures context for later correlation.