The query ran. The table stared back, static, missing what you needed. You added a new column.
A new column changes a database. It alters structure, storage, and performance. In SQL, adding one is simple. In production, it is not. Each command carries risk. The wrong type, the wrong default, the wrong size—these can break code or grind queries to a halt.
Use ALTER TABLE table_name ADD COLUMN column_name data_type; to create it. This locks the table in many databases. On large datasets, downtime is possible. Some systems block reads or writes until the operation finishes. Test on realistic data before touching production.
Choose the data type with care. An INT versus a BIGINT is more than syntax. A VARCHAR with no length is not a free pass—it has limits set by the engine. NULL vs NOT NULL is not optional trivia. Defaults matter; they define what existing rows will get when the column appears.