Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your primary key is your table. In an InnoDB the primary key contains the actual data thus if the primary key contains the data it is the table. </p> <p>Think about it for a moment. You get two different types of indexes on an InnoDB table clustered and secondary indexes. The difference is that a clustered index contains the data and a secondary index contains the indexed columns and a pointer to the data. Thus a secondary index does not contain the data but rather the location of where the data is located in the CLUSTERED index.</p> <p>Normally a primary key is a clustered index. It would be highly inefficient to store both the table with all its values and then a clustered index with all its values. This would effectively double the size of the table.</p> <p>So when you have a primary key that is on an InnoDB the table size is the size of the primary key. In some database systems you can have a secondary index as a primary key and a separate index as a clustered key, however InnoDB does not allow this. </p> <p>Go read the following links for more details:</p> <p><a href="http://dev.mysql.com/doc/refman/5.0/en/innodb-table-and-index.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.0/en/innodb-table-and-index.html</a></p> <p><a href="http://dev.mysql.com/doc/refman/5.0/en/innodb-index-types.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.0/en/innodb-index-types.html</a></p> <p>In these links they explain all I have said above in more detail. Simply put you already have the size of the primary key index as it is the size of your table.</p> <p>Hope that helps.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload