Skip to main content
InterviewHubPRO
Section Overview
Q3

Question 3 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

6%
MySQL & InnoDB (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

What is a Clustered Index (Primary Key) in InnoDB?

junior LevelMost AskedMySQL

In Simple Words: In InnoDB, the table is the clustered index:

  • The leaf nodes of the primary key B+ Tree physically contain the entire actual row data (all column values).
  • Every InnoDB table must have exactly one clustered index:
    1. If a PRIMARY KEY is declared, it is used.
    2. If none, the first unique non-null column is used.
    3. If neither exists, InnoDB creates a hidden 6-byte auto-increment integer GEN_CLUST_INDEX.