9.11 ALTER TABLE Syntax

  變更資料表結構。如以下範例:
-- ALTER TABLE Syntax
ALTER TABLE `table`
ADD `column1` INT(11) NOT NULL AFTER `column2`,
ADD PRIMARY KEY (`column3`),
MODIFY `column4` VARCHAR(50) NOT NULL DEFAULT 'value',
CHANGE `column5` `column6` DATETIME NOT NULL,
DROP `column7`,
DROP FOREIGN KEY `foreign_key_name`;