Concept Flow - AUTO_INCREMENT behavior
Create Table with AUTO_INCREMENT
Insert Row without ID
MySQL assigns next AUTO_INCREMENT value
Row inserted with assigned ID
AUTO_INCREMENT counter increments
Next insert uses updated AUTO_INCREMENT value
When you insert a row without specifying the AUTO_INCREMENT column, MySQL automatically assigns the next number, then increases the counter for the next insert.