Syntax

SQL Add a Column Syntax

In SQL, add a column: adds a column to an existing table — ALTER TABLE users ADD COLUMN phone TEXT;

Quick Answer

Syntax
ALTER TABLE users ADD COLUMN phone TEXT;
SQLSyntax

Add a Column

Code example
ALTER TABLE users ADD COLUMN phone TEXT;

Adds a column to an existing table.

Learn More

How to add a column in SQL

  1. Open your SQL file or editor.
  2. Copy the example, then replace its sample names and values for your code.

SQL Add a Column Syntax

Use ALTER TABLE users ADD COLUMN phone TEXT;.

Related Syntax References

Frequently asked questions

What is the SQL syntax for add a column?

Use this pattern: ALTER TABLE users ADD COLUMN phone TEXT;

Can I copy this SQL code example?

Yes. Use Copy code and adapt the example to your program.

Is this SQL syntax different on Mac or Windows?

No. The language syntax is the same across operating systems.

Official source · How we verify