Is it possible to find out what the next auto increment will be for my primary key without executing an INSERT INTO query? Some rows are deleted meaning that it’s not as easy as just adding one to a SELECT MAX query on the PK. Many thanks.
Share
If you really want to know next auto_increment value try
SHOW TABLE STATUSreturns nextAuto_incrementfield, e.g.:or