Add a nullable column to an existing table.
Section: create and alter tables
Add a column
sql
sql
ALTER TABLE users ADD COLUMN phone VARCHAR(50) NULL AFTER email;Explanation
`AFTER` controls physical column position in MySQL table metadata.
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 and alter tables