Table of Contents

ALTER TABLE

Standard Syntax

ALTER TABLE tablename
(
  ADD|DROP  COLUMN  datatype  [NULL|NOT NULL]  [CONSTRAINTS],
  ADD|DROP  COLUMN  datatype  [NULL|NOT NULL]  [CONSTRAINTS],
  ...
);

Adding a Primary Key

Adding an Index/Key

Converting to a Character Set

Converting to a different engine

Renaming a Column