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 31 32 33 34 35 36 37 38 39
| --
-- Structure de la table `commandes_articles`
--
CREATE TABLE IF NOT EXISTS `commandes_articles` (
`commande_id` int(11) NOT NULL,
`produit_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Contenu de la table `commandes_articles`
--
INSERT INTO `commandes_articles` (`commande_id`, `produit_id`) VALUES
(1, 212),
(1, 158),
(2, 258),
(2, 158),
(3, 1254);
--
-- Structure de la table `produits`
--
CREATE TABLE IF NOT EXISTS `produits` (
`id` int(11) NOT NULL,
`nom` varchar(20) NOT NULL,
`four` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Contenu de la table `produits`
--
INSERT INTO `produits` (`id`, `nom`, `four`) VALUES
(212, 'toto', 12),
(158, 'tata', 14),
(258, 'tutu', 14),
(1254, 'tete', 6); |
Partager