Modify an existing table by adding a new column.
Section: CREATE, ALTER, and DROP
Add a column
sql
sql
ALTER TABLE users
ADD COLUMN last_login_at TIMESTAMP;Explanation
ALTER TABLE changes schema without recreating the table.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing CREATE, ALTER, and DROP