MariaDB - INNODB skipping the number sequence while creating incremental records - why?
问题 I do not know if this is expected behavior with INNODB , but I really think it's totally weird. If I use the same SQL statement using MYISAM , the behavior occurs as expected. MYISAM CREATE TABLE main_database.numero ( id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id) ) ENGINE = MYISAM DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; INSERT INTO main_database.numero VALUES(NULL); -- First, run once time ... INSERT INTO main_database.numero SELECT NULL FROM main_database.numero; -- After,