한 테이블에 Auto Increment는 1개만 가능하다. 다만, 외래키로 Auto Increment로 가져오는 경우 2개 이상이 가능하다. 외래키로 Product_ID가 Auto Increment로 있는 상태에서 테이블에 Consumer_ID를 Auto Increment로 설정하려니까 다음과 같은 오류가 났다. ALTER TABLE mydb.Order CHANGE Order_Number Order_Number INT AUTO_INCREMENT; error code: 1072. key column 'product_id' doesn't exist in table 해결방법 1. 원래 있던 TABLE을 아예 DROP 해준다. 2. 원하는 속성을 AUTO_INCREMENT로 설정해주고, 원하던 외래키(AUTO_..