본문 바로가기

will come true

검색하기
will come true
프로필사진 6__6

  • 분류 전체보기 (183)
    • Algorithm (77)
    • Java (19)
    • Kotlin (3)
    • Android (37)
    • WIL (1)
    • Database (3)
    • English (24)
    • Etc. (14)
Guestbook
Today
Total
Link
  • GitHub
  • Velog
Notice
  • [블로그 이전 공지] Velog로 이사합니다.
Recent Posts
Recent Comments
250x250
«   2026/04   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
Tags
  • Android
  • androidstudio
  • bitmap
  • BOJ
  • Canvas
  • CS
  • Database
  • DBeaver
  • DP
  • Ecilpse
  • Eclipse
  • firebase
  • git
  • github
  • GooglePlayServices
  • gradle
  • IDE
  • IntelliJ
  • java
  • json
  • kotlin
  • level2
  • linux
  • mariadb
  • MYSQL
  • Paint
  • permission
  • python
  • Sorting
  • sourcetree
more
Archives
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록MYSQL (1)

will come true

[MySQL / MariaDB] Name 'constraint_name' ignored for PRIMARY key.

에러 CREATE TABLE 문을 사용해 테이블을 생성하는 과정에서 아래와 같은 메시지가 출력됐다. 아래는 선수 정보를 저장하는 PLAYER 테이블의 생성 SQL문이다. Name 'player_id_pk' ignored for PRIMARY key. 원인 기본키(PK) 제약조건을 지정하는 아래 문장때문에 발생하는 에러로, 기본키(Primary Key) 제약조건은 'PRIMARY'라는 이름을 기본으로 사용하기 때문에 내가 지정한 제약조건명(player_id_pk)를 무시하겠다는 뜻의 메시지이다. CONSTRAINT player_id_pk PRIMARY KEY (player_id) 제약조건명 생략시 DEFAULT값 PRIMARY KEY : 'PRIMARY' FOREIGN KEY : '테이블명_ibfk_1',..

Etc. 2021. 11. 18. 00:31
Prev 1 Next

Blog is powered by AXZ / Designed by Tistory

티스토리툴바