MariaDB Set Auto Increment Value: Start, Change, Reset and Add
Want the next ID to be 5000? That’s the whole MariaDB set auto increment value job, one ALTER TABLE: Next insert: Tested on MariaDB 13.0.2 with InnoDB tables. Set the Start Value in CREATE TABLE Put AUTO_INCREMENT = n after the column list. This is the sample table every query below resets to (the AUTO_INCREMENT … Read more >>