Mega Code Archive

 
Categories / MySQL / Table Index
 

Syntax for Creating Tables (CREATE TABLE)

CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tblname ( colname1 coltype coloptions reference, colname2 coltype coloptions reference... [ , index1, index2 ...] ) [ ENGINE = MyISAM|InnoDB|HEAP ] [ DEFAULT CHARSET = csname [ COLLATE = colname ]]