1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| CREATE TABLE `produits` (
`id` int(11) NOT NULL auto_increment,
`intitule` tinytext NOT NULL,
`commercant` int(11) NOT NULL default '0',
`sous_type` int(11) NOT NULL default '0',
`prix` double NOT NULL default '0',
`frais_port` double NOT NULL default '0',
`description` text NOT NULL,
`stock` mediumint(9) NOT NULL default '0',
`photo_type` tinytext NOT NULL,
`photo_blob` blob NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=23 ;
--
-- Contenu de la table `produits`
--
INSERT INTO `produits`
(`id`, `intitule`, `commercant`, `sous_type`, `prix`, `frais_port`, `description`, `stock`, `photo_type`, `photo_blob`)
VALUES
(1, 'Assiette', 24, 0, 8.05, 10.9, 'Asiette en Argile', 2, 'image/pjpeg', );
INSERT INTO `produits`
(`id`, `intitule`, `commercant`, `sous_type`, `prix`, `frais_port`, `description`, `stock`, `photo_type`, `photo_blob`)
VALUES
(13, 'Jambon', 27, 0, 25, 2, 'lkg', 0, 'image/gif', ;
INSERT INTO `produits`
(`id`, `intitule`, `commercant`, `sous_type`, `prix`, `frais_port`, `description`, `stock`, `photo_type`, `photo_blob`)
VALUES
(10, 'ndmlknqlkfdnv', 24, 0, 1, 1, '1', 4, 'image/pjpeg', ); |
Partager