Cómo conocer el proximo id de un AUTO INCREMENT en mysql

De Reyesoft

SELECT AUTO_INCREMENT FROM information_schema.TABLES
WHERE TABLE_SCHEMA = 'nombre_base_de_datos' AND TABLE_NAME = 'nombre_de_la_tabla

Fuente: http://www.bram.us/2008/07/30/mysql-get-next-auto_increment-value-fromfor-table/

Herramientas personales