-
데이터들을 임의 테이블에 정렬하여 데이터에 대한 주소를 저장
ex)
index : sq_member,sq_request
sq_member정렬후 sq_request값정렬 하여 검색후 주소를 값을 전달하여 검색한다
table
sq_member
sq_request
임의주소
2
1
#001
3
3
#002
2
3
#003
1
2
#004
3
4
#005
3
3
#006
인덱스 정렬 임의테이블
sq_member
sq_request
임의주소
1
2
#004
2
1
#001
2
3
#003
3
3
#002
3
3
#006
3
4
#005
위테이블형식으로 정렬이 되며 index거는 조건에 떄라 달라진다
sq_request,sq_member 반대로 거는경우 위 인덱스경우 타지 않는다
이러한경우 반대 인덱스도 걸어주어야 한다
sq_request
sq_member
임의주소
1
2
#001
2
1
#004
3
2
#003
3
3
#002
3
3
#006
4
3
#005
위테이블형식으로 인덱스가 다시 정령된다
'MYSQL' 카테고리의 다른 글
검색필드값 조건 걸기 (0) 2020.07.14 DB현재 실행중인 쿼리 확인 (0) 2020.07.14 order by case 또는 select case (0) 2020.06.11 mysql 글로벌 설정값 보기 (0) 2020.06.11 데이터가 많은 DB셀렉트 처리하기 (0) 2020.06.11