Whether the real data is stored in the clustered index in the database

The

index is a data structure in which the leaf node of the b + tree holds pointers to the actual rows.
what about clustered indexes? what does InnoDB"s clustered index mean by storing B+Tree indexes and data rows in the same structure? Does
mean that the pointer in the leaf node of a nonclustered index points to the rows of data stored in the clustered index

Mar.09,2021

InnoDB clustered index is clustered according to the primary key (primary key), each table can only have one clustered index, the table data file itself is an index structure organized by B+Tree, and the data domain of the leaf node stores the complete data record; so, the InnoDB table data file itself is the main index file, that is, you just said that "the B+Tree index and data rows are saved in the same structure". The way the clustered index is used makes it very fast to find and sort according to the range of the primary key (refer to the data structure of the clustered index).

InnoDB secondary indexes are implemented by all secondary indexes refer to the primary key as the data field, so the secondary index search needs to retrieve the secondary index twice to obtain the data record, but it is convenient to change the secondary index (it does not affect the data file itself organized according to the primary index), and because all secondary indexes refer to the primary index, it is not recommended that the primary index be too large.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3b639-43dbd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3b639-43dbd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?