Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/07/2010, 16:08
nightduke
 
Fecha de Ingreso: mayo-2008
Mensajes: 181
Antigüedad: 16 años
Puntos: 0
Respuesta: ordenar fechas

Cita:
Iniciado por huesos52 Ver Mensaje
Código MySQL:
Ver original
  1. ORDER BY STR_TO_DATE(campo_fecha,'%d/%m/%Y');

saludos
Asi si me funciona pero ahora quiero ordenarlo por id
SELECT * FROM `20052010` where id between 1 and 153 ORDER BY STR_TO_DATE(contable,'%d/%m/%Y', order by id

¿Como puedo hacerlo?

Gracias