
29/12/2008, 02:00
|
 | | | Fecha de Ingreso: septiembre-2007 Ubicación: Funes , Argentina
Mensajes: 204
Antigüedad: 17 años, 6 meses Puntos: 0 | |
Respuesta: no andan los join mira aca te dejo las dos tablas, hice una relacion , pero no se si esta bien
las de la fotos
CREATE TABLE `archivos` (
`id` int(21) NOT NULL auto_increment,
`archivo_binario` blob NOT NULL,
`archivo_nombre` text NOT NULL,
`archivo_peso` text NOT NULL,
`archivo_tipo` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=68 ;
y la de la noticia
CREATE TABLE `noticia` (
`id` bigint(20) NOT NULL auto_increment,
`nombre` text NOT NULL,
`cuerpo` text NOT NULL,
`autor` text NOT NULL,
`subcuerpo` text NOT NULL,
`archivos_id` bigint(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=61 ; |