Ver Mensaje Individual
  #9 (permalink)  
Antiguo 18/08/2009, 19:25
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: como saber el último id 'autoincrement' ??

Obtener el ultimo registro en la tabla, independientemente de los que hayas borrado:

Código:
SELECT id FROM tabla ORDER BY id DESC LIMIT 1
__________________
- León, Guanajuato
- GV-Foto