1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| CREATE TABLE `marque` (
`id_marque` int(11) NOT NULL auto_increment,
`nom` varchar(100) NOT NULL,
`photo` varchar(100) NOT NULL,
PRIMARY KEY (`id_marque`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
INSERT INTO `marque` (`id_marque`, `nom`, `photo`) VALUES
(3, 'Photoshop ', 'photoshop1.jpg'),
(2, 'Illustrator', 'photoshop1.jpg');
CREATE TABLE `produit` (
`id_prod` int(11) NOT NULL auto_increment,
`id_marque` int(11) NOT NULL,
`nom` varchar(100) NOT NULL,
`photo` varchar(100) NOT NULL,
`txt` varchar(300) NOT NULL,
PRIMARY KEY (`id_prod`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
INSERT INTO `produit` (`id_prod`, `id_marque`, `nom`, `photo`, `txt`) VALUES
(3, 3, 'Sandisk CompactFlash Ultra II 1 Go', 'sandisk_ultra_II_1go.jpg', 'Le Nikon D3 est lactuel state of the art de la marque jaune et noire'),
(6, 2, 'Illutrator CS2', 'logo_illustrator_2.gif', 'gfgfgfgf'); |
Partager