ALTER TABLE


ALTER TABLE

ALTER TABLE is used to update the schema of an existing table. To create a new table, use CREATE TABLE. See Chapter 21, "Creating and Manipulating Tables," for more information.

Input

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




MySQL Crash Course
MySQL Crash Course
ISBN: 0672327120
EAN: 2147483647
Year: 2004
Pages: 214
Authors: Ben Forta

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net