Como puedo conocer el proximo id Mysql
AUTOR PREGUNTA #1
-
¿Tienes la misma pregunta? Yo también
Esto también te interesa!
PREGUNTAS SIMILARES
#2
SELECT AUTO_INCREMENT FROM `information_schema`.`tables` WHERE TABLE_SCHEMA = "mibasededatos" AND TABLE_NAME = "mitabla"
#4
$resultado = mysql_query("SELECT AUTO_INCREMENT as nuevoid FROM `information_schema`.`tables` WHERE TABLE_SCHEMA = "mibasededatos" AND TABLE_NAME = "mitabla""); $datostabla= mysql_fetch_object($resultado); mysql_free_result($resultado); echo $datostabla->nuevoid;
Le asignamos un alias nuevoid al auto_increment para hacerlo mas amigable