Adding a new column is one of the cleanest ways to evolve a database. It changes the shape of your schema without breaking the records you already trust. Whether you work with PostgreSQL, MySQL, or SQLite, the concept is the same: define the column, choose its type, set defaults if needed, and let the database handle the rest.
In PostgreSQL:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP DEFAULT CURRENT_TIMESTAMP;
In MySQL:
ALTER TABLE users ADD COLUMN last_login DATETIME DEFAULT CURRENT_TIMESTAMP;
Performance matters. Adding a column in a massive table can lock writes or even block reads, depending on the engine. Plan migrations during low-traffic periods. Use tools like pt-online-schema-change in MySQL or ALTER TABLE ... ADD COLUMN with careful transaction control in PostgreSQL.