This is more than syntax. A new column changes schema shape, query complexity, and index strategy. Done well, it adds power. Done poorly, it creates technical debt.
In SQL, adding a new column is direct:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
In production, it’s never just one line. You must consider default values, nullability, and constraints. Adding an indexed column can lock the table. For large datasets, migrations need to run online to avoid downtime.
A new column means more disk usage. It can impact query plans, join costs, and cache size. Always measure before and after. Use EXPLAIN to see how queries change. A column with high cardinality might benefit from an index; a low-cardinality column might not.