The database table is ready, but the data needs room to grow. You add a new column. One change, but it can reshape the way your system runs.
A new column in a relational database expands the schema. It stores more attributes, answers more queries, and unlocks new features. In SQL, the ALTER TABLE command is the direct way to create it:
ALTER TABLE users
ADD COLUMN last_login TIMESTAMP;
This operation changes the structure without replacing the existing table. The database engine updates its internal metadata. For small tables, the change is fast. For massive datasets, adding a column can trigger locks, long migrations, and replication lag. Always measure the impact in staging before you run it in production.
Not all databases handle it the same way. PostgreSQL can add nullable columns without rewriting the table. MySQL may need to copy data to create the new structure. Cloud-managed databases sometimes add overhead with backups or indexes. Know your system’s behavior before pushing new schema changes.