
02/01/2008, 14:59
|
 | | | Fecha de Ingreso: diciembre-2007 Ubicación: Madrid
Mensajes: 223
Antigüedad: 17 años, 2 meses Puntos: 2 | |
Re: Sintaxis sql O también:
SELECT t.id,t.nombre,t.apellido,t.email FROM tabla t ORDER BY i.id ASC LIMIT 1
para el primero y luego
SELECT t.id,t.nombre,t.apellido,t.email FROM tabla t ORDER BY i.id DESC LIMIT 1
Para el último |