사용자 도구

사이트 도구


database:mysql:index

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
database:mysql:index [2018/07/04 14:00]
kwon37xi [CREATE INDEX]
database:mysql:index [2019/01/23 11:18]
kwon37xi [REFERENCES 구문 사용하지 말 것.]
줄 2: 줄 2:
  
 WHERE절에서 조건으로 쓰이는 컬럼을 인덱스로 만드는 것이 좋고, AND 연산으로 검색되는 컬럼들은 모두 하나의 인덱스로 만드는 것이 좋다. WHERE절에서 조건으로 쓰이는 컬럼을 인덱스로 만드는 것이 좋고, AND 연산으로 검색되는 컬럼들은 모두 하나의 인덱스로 만드는 것이 좋다.
 +
 +===== REFERENCES 구문 사용하지 말 것. =====
 +  * [[https://stackoverflow.com/questions/14230892/difference-between-using-references-with-and-without-foreign-key|mysql - Difference between using REFERENCES with and without FOREIGN KEY? - Stack Overflow]]
 +  * https://dev.mysql.com/doc/refman/5.7/en/create-table.html
 + > MySQL parses but **ignores “inline REFERENCES specifications”** (as defined in the SQL standard) where the references are defined as part of the column specification. MySQL accepts REFERENCES clauses only when specified as part of a separate FOREIGN KEY specification.
 +
 +
 +
 +
  
 ===== Index 생성 ===== ===== Index 생성 =====
database/mysql/index.txt · 마지막으로 수정됨: 2020/11/24 18:55 저자 kwon37xi