Some Common Attributes of Columns in MYSQL Tables
PRIMARY KEY It is a unique index where all key columns must be defined as NOT NULL . If they are not explicitly declared as NOT NULL , MySQL declares them so implicitly (and silently). A table can have only one PRIMARY KEY . The name of a PRIMARY KEY is always PRIMARY , which thus cannot be used as the name for any other kind of index. If you do not have a PRIMARY KEY and an application asks for the PRIMARY KEY in your tables, MySQL returns the first UNIQUE index that has no NULL columns as the PRIMARY KEY . AUTO_INCREMENT The initial AUTO_INCREMENT value for the table. In MySQL 5.0, this works for MyISAM and MEMORY tables. It is also supported for InnoDB as of MySQL 5.0.3. To set the first auto-increment value for engines that do not support the AUTO_INCREMENT table option, insert a “ dummy ” row with a value one ...