반응형
- 인덱스 확인
show index from table_name;
- 인덱스 생성
create index index_name on table_name (column_name);
- 인덱스 삭제
drop index index_name on table_name;
- 복합 인덱스 생성
create index index_name on table_name (column_name1, column_name2);
- 인덱스 중지
alter table table_name DISABLE index_name;
* 인덱스 중지상태일 경우 show index로 확인시 해당 index의 comment에 disble로 표기됨
반응형
'IT > DB' 카테고리의 다른 글
CentOS7 & MariaDB 데이터 베이스 저장공간 변경 (0) | 2019.07.25 |
---|---|
CentOS7 & MariaDB 설치 (0) | 2019.07.22 |
mariaDB 계정 생성 및 database 접근권한 설정 (0) | 2019.07.10 |
ms-sql backup & restore (0) | 2019.07.08 |
MDB 비밀번호 찾기, VIEWER (0) | 2019.04.24 |