Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/02/2014, 05:52
Cota_Isla
 
Fecha de Ingreso: noviembre-2012
Mensajes: 184
Antigüedad: 12 años, 3 meses
Puntos: 0
Respuesta: Tipo de datos Tintyint

Perdona, ahora me ha dejado... cosas raras...
Te adjunto el código:
Código MySQL:
Ver original
  1. CREATE TABLE IF NOT EXISTS `sala` (
  2.   `nom` varchar(25) NOT NULL,
  3.   `descrip` text NOT NULL,
  4.   `planta` enum('Baja','Primera','Segunda','Tercera','Cuarta') NOT NULL,
  5.   `uso` tinyint(1) unsigned NOT NULL DEFAULT '0',
  6.   `img` varchar(65) DEFAULT NULL,
  7.   `uso1` bit(1) NOT NULL,
  8.   PRIMARY KEY (`id`),
  9.   UNIQUE KEY `id` (`id`),
  10.   UNIQUE KEY `nombre` (`nom`)
Y cuando introduzco 1 por ejemplo me pone:
0 filas afectadas.
Warning: #1264 Out of range value for column 'uso1' at row 1

Última edición por gnzsoloyo; 22/02/2014 a las 06:00