-- Hammadache.sql -- -- phpMyAdmin SQL Dump -- version 4.1.4 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Jeu 28 Novembre 2019 à 09:22 -- Version du serveur : 5.6.15-log -- Version de PHP : 5.4.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Base de données : `gtr2020` -- -- -------------------------------------------------------- -- -- Structure de la table `client` -- CREATE TABLE IF NOT EXISTS `client` ( `codecl` varchar(4) NOT NULL, `nom` varchar(20) NOT NULL, `adresse` varchar(140) NOT NULL, PRIMARY KEY (`codecl`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Contenu de la table `client` -- INSERT INTO `client` (`codecl`, `nom`, `adresse`) VALUES ('0001', 'hammadache', 'Lile'), ('0002', 'Manel', 'hussein dey'); -- -------------------------------------------------------- -- -- Structure de la table `commande` -- CREATE TABLE IF NOT EXISTS `commande` ( `Numcom` int(3) NOT NULL, `date` date NOT NULL, `codecl` varchar(4) NOT NULL, PRIMARY KEY (`Numcom`), KEY `codecl` (`codecl`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Contenu de la table `commande` -- INSERT INTO `commande` (`Numcom`, `date`, `codecl`) VALUES (1, '2019-11-02', '0001'), (2, '2019-01-02', '0002'); -- -------------------------------------------------------- -- -- Structure de la table `detail` -- CREATE TABLE IF NOT EXISTS `detail` ( `Numprod` int(2) NOT NULL, `Numcom` int(3) NOT NULL, KEY `Numprod` (`Numprod`), KEY `Numcom` (`Numcom`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Contenu de la table `detail` -- INSERT INTO `detail` (`Numprod`, `Numcom`) VALUES (1, 1), (2, 2); -- -------------------------------------------------------- -- -- Structure de la table `produit` -- CREATE TABLE IF NOT EXISTS `produit` ( `Numprod` int(2) NOT NULL, `libeler` varchar(20) NOT NULL, `prix` decimal(6,2) NOT NULL, `quantite` int(3) NOT NULL, PRIMARY KEY (`Numprod`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Contenu de la table `produit` -- INSERT INTO `produit` (`Numprod`, `libeler`, `prix`, `quantite`) VALUES (1, 292020, '500.00', 1), (2, 292021, '550.00', 1); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;