ใช้ Storage Engine MyISAM InnoDB ไม่รองรับ AUTO_INCREMENT บนคอลัมน์ที่สองของ Composite Primary Key แต่ MyISAM รองรับ ตัวอย่าง สร้างตาราง mysql> create table TwoPrimaryKeyTableDemo ( -> Result ENUM(First,Second,Third,Fail) not null, -> StudentId int not null auto_increment, ->