써먹는 웹개발

[Mysql(Datagrip)] Incorrect table definition 해결방법 본문

웹개발/Database

[Mysql(Datagrip)] Incorrect table definition 해결방법

kmhan 2024. 4. 18. 10:59


728x90
반응형

에러

 - Incorrect table definition; there can be only one auto column and it must be defined as a key.

 

해결방법 : 해당컬럼을 고유키 추가하면 됩니다.

쿼리문

1
2
3
alter table 테이블명
    add constraint CONTENT_TBL_FILE_IDX01F
        unique (FILE_ID);
cs
728x90
반응형


Comments