ใครช่วยบอกฉันทีว่ามีอะไรผิดปกติกับนิยามตารางนี้ 
รุ่น mysql คือ 5.1.52-log  
root@localhost spoolrdb> create table spoolqueue (
                             queue int,
                             idx bigint not null auto_increment,
                             status smallint,
                             querystring varchar(2048),
                             contenttype varchar(255),
                             characterencoding varchar(16),
                             body text,
                             primary key(queue,idx)
                             );
ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key
                
                1
              
                  ฉันชอบคำถามนี้ (+1 สำหรับคุณ) เพราะมันแสดง MySQL gotcha ซึ่งเป็นเอกลักษณ์ของ MyISAM การถามว่าทำไมดีกว่าการยอมแพ้และออกแบบใหม่อยู่เสมอ
                
                
                  
                    —
                    RolandoMySQLDBA