Ver Mensaje Individual
  #7 (permalink)  
Antiguo 29/07/2013, 17:43
Avatar de KATHYU
KATHYU
 
Fecha de Ingreso: julio-2013
Mensajes: 547
Antigüedad: 10 años, 9 meses
Puntos: 46
Respuesta: Problema con ORDER BY DESC

Cita:
Iniciado por iEnrique Ver Mensaje
¿Esto?

Código SQL:
Ver original
  1. CREATE TABLE `personajes` (
  2.  `id` INT(11) NOT NULL AUTO_INCREMENT,
  3.  `nombre` VARCHAR(30) NOT NULL,
  4.  `personaje` VARCHAR(50) NOT NULL,
  5.  `personaje_mini` VARCHAR(30) NOT NULL,
  6.  `defensa` VARCHAR(50) NOT NULL,
  7.  `ataque` VARCHAR(50) NOT NULL,
  8.  `descripcion` text NOT NULL,
  9.  `media` VARCHAR(50) NOT NULL,
  10.  `puntos` VARCHAR(50) NOT NULL,
  11.  `user` VARCHAR(100) NOT NULL,
  12.  PRIMARY KEY (`id`)
  13. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1
Defensa, ataque, media, puntos deberian ser sumericos no textos !!!!
__________________
Al contrario de lo que muchos podrían afirmar, ayudar no te hace pobre, sino más rico.