DB/MYSQL

[ MYSQL ] 인덱스 확인 방법

HEON.D 2024. 12. 19. 15:29

인덱스 확인

  SHOW INDEX FROM USER_POINT;

 

결과

Table     |Non_unique|Key_name           |Seq_in_index|Column_name        |Collation|Cardinality|Sub_part|Packed|Null|Index_type|Comment|Index_comment|Visible|Expression|
----------+----------+-------------------+------------+-------------------+---------+-----------+--------+------+----+----------+-------+-------------+-------+----------+
USER_POINT|         0|PRIMARY            |           1|user_point_id      |A        |       2203|        |      |    |BTREE     |       |             |YES    |          |
USER_POINT|         0|unique_user_invoice|           1|user_id            |A        |       1548|        |      |    |BTREE     |       |             |YES    |          |
USER_POINT|         0|unique_user_invoice|           2|invoice_id         |A        |       1815|        |      |YES |BTREE     |       |             |YES    |          |
USER_POINT|         0|unique_user_invoice|           3|user_point_provider|A        |       2122|        |      |    |BTREE     |       |             |YES    |          |

'DB > MYSQL' 카테고리의 다른 글

[ MYSQL ] ORDER BY FIELD  (0) 2024.07.04
[ MYSQL ] Decimal / Double 차이  (0) 2024.07.01
[ Mariadb ] 원격 쉘 접속  (0) 2024.06.24
[ MYSQL ] RDS maria db client connection  (0) 2024.06.05
[ MYSQL ] 데이터 명세서 작성용 스키마체크  (0) 2024.04.24