Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/12/2010, 06:48
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: Ordenar una select por codigo especifico

con ORDER BY FIELD()

select codigo,nombre,precio,imagen_grande_1
, descripcion_castellano from novedades where familia in ('LENCERIA','JUEGOS','VARIOS') ORDER BY FIELD (familia, 'LENCERIA', 'VARIOS', 'JUEGOS');