Ver Mensaje Individual
  #9 (permalink)  
Antiguo 03/12/2012, 12:52
Avatar de archios
archios
 
Fecha de Ingreso: octubre-2012
Ubicación: coahuila mexico
Mensajes: 23
Antigüedad: 11 años, 6 meses
Puntos: 0
Respuesta: Consutlas de un mismo dato

lo siento no sabia eso :S
aqui esta esto es lo que me pides?

users
CREATE TABLE `users` (
`id` int(40) NOT NULL AUTO_INCREMENT,
`username` varchar(50) NOT NULL,
`centros` text NOT NULL,
`password` varchar(50) NOT NULL,
`email` varchar(250) NOT NULL,
`active` tinyint(1) NOT NULL,
`admin` tinyint(1) NOT NULL,
`code` varchar(25) NOT NULL,
`date` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=latin1


unidades
CREATE TABLE `unidades` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`codigo` int(255) NOT NULL,
`codigodonante` int(255) NOT NULL,
`tipoplasma` text NOT NULL,
`centros` text NOT NULL,
`tipo` varchar(50) NOT NULL,
`cantidad` int(255) NOT NULL,
`fechaentrada` date NOT NULL,
`caducidad` date NOT NULL,
`baja` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=latin1