Land of Joe
[SQL] ERROR 1075: Incorrect table definition; there can be only one auto column and it must be defined as a key 오류 해결하기 본문
🧠 DataBase
[SQL] ERROR 1075: Incorrect table definition; there can be only one auto column and it must be defined as a key 오류 해결하기
Arendt 2023. 10. 22. 02:38또 뭐가 문제뉘..
테이블 하나 만드는데 온갖 에러 다 보게 생겼다.....광광
뚝.
이건 AUTO_INCREMENT column 규칙을 제대로 안 지켰기 때문이라고 하는데..
AUTO_INCREMENT column은 하나여야 하고, 무조건 PK(기본키)에 포함되어 있어야 한다고 한다..!
해당 속성에 대해 충분히 알아보지 않고 무지성으로 명령어를 작성한 나자식 반성!
'🧠 DataBase' 카테고리의 다른 글
[SQL] ERROR 1005: (errno: 150 "Foreign key constraint is incorrectly formed") (0) | 2023.10.22 |
---|---|
[SQL] ERROR 1063: Incorrect column specifier for column ' ' 오류 해결하기 (0) | 2023.10.22 |