Why does the Mysql InnoDB type automatically increment ID not correspond to the number of rows?

the auto-increment ID of InnoDB type does not correspond to the number of rows for the same data? But the MyISAM type is normal!

the specific data in the PS: table is first in php, execute sql for tag field like query, and store it if there is no query!

May.22,2021

because InnoDB supports transactions, if the transaction is rolled back, the self-increasing id occupied by the transaction will be lost

there is also batch insertion. InnoDB does not know the exact number of self-increasing id required for each statement, so it may be overvalued

.
Menu