MySQL Tutorial

A database system used with PHP.

MySQL Alter Table

MySQL ALTER TABLE Statement

The ALTER TABLE statement is used to add, delete, or modify columns in an existing table.

The ALTER TABLE statement is also used to add and drop various constraints on an existing table.

Syntax (Add Column):

ALTER TABLE table_name
ADD column_name datatype;

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics