Ver Mensaje Individual
  #4 (permalink)  
Antiguo 17/11/2009, 10:21
Avatar de jerkan
jerkan
 
Fecha de Ingreso: septiembre-2005
Mensajes: 1.607
Antigüedad: 18 años, 7 meses
Puntos: 19
Respuesta: random entre los ultimos registros

Si no tienes ningún campo de fecha que indique cuándo se creó el registro, yo lo haría así:
Código:
SELECT *FROM (SELECT * FROM registros ORDER id DESC LIMIT 5)t1 ORDER BY rand()
dónde 'id' es el campo autonumérico