Append a new nullable or defaulted column.

Section: Change schemas safely

Add a column

sql
sql
ALTER TABLE users ADD COLUMN timezone TEXT;
Explanation

Adding a column is easy, but more complex schema changes often require a table rebuild.

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 Change schemas safely
Rename a table
Change the table name without recreating data.
OpenIn sheetsqlsame section
Rename a column
Adjust a column name in-place.
OpenIn sheetsqlsame section
Rebuild a table for complex changes
Canonical pattern for dropping constraints or changing types.
OpenIn sheetsqlsame section
Create a basic table
Define a rowid-backed table with primary key and timestamps.
OpenIn sheetsql1 tag match
Use a CHECK constraint
Validate allowed values at the database layer.
OpenIn sheetsql1 tag match
Add a foreign key
Reference a parent table from a child table.
OpenIn sheetsql1 tag match