exo9: add sql schema of MyBd.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 11 Apr 2018 19:38:01 +0000 (21:38 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 11 Apr 2018 19:38:01 +0000 (21:38 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
ROOT/exo9/MyBd.sql [new file with mode: 0644]

diff --git a/ROOT/exo9/MyBd.sql b/ROOT/exo9/MyBd.sql
new file mode 100644 (file)
index 0000000..5cfd0a0
--- /dev/null
@@ -0,0 +1,69 @@
+-- phpMyAdmin SQL Dump
+-- version 4.6.6deb5
+-- https://www.phpmyadmin.net/
+--
+-- Client :  localhost:3306
+-- Généré le :  Mer 11 Avril 2018 à 21:36
+-- Version du serveur :  5.7.21-0ubuntu0.17.10.1
+-- Version de PHP :  7.1.15-0ubuntu0.17.10.1
+
+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 utf8mb4 */;
+
+--
+-- Base de données :  `MyBd`
+--
+
+-- --------------------------------------------------------
+
+--
+-- Structure de la table `details_livres`
+--
+
+CREATE TABLE `details_livres` (
+  `id` int(11) NOT NULL,
+  `nom_livre` varchar(30) NOT NULL,
+  `auteur` varchar(30) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=latin1;
+
+--
+-- Contenu de la table `details_livres`
+--
+
+INSERT INTO `details_livres` (`id`, `nom_livre`, `auteur`) VALUES
+(6, 'Fahrenheit 451', 'Ray Bradbury'),
+(5, 'L\'appel de la forêt', 'Jack London'),
+(2, 'L\'écumes des jours', 'Boris Vian'),
+(7, 'La Métamorphose', 'Franz Kafka'),
+(4, 'Le Horla', 'Guy de Maupassant'),
+(1, 'Ulysee', 'James Joyce');
+
+--
+-- Index pour les tables exportées
+--
+
+--
+-- Index pour la table `details_livres`
+--
+ALTER TABLE `details_livres`
+  ADD PRIMARY KEY (`id`),
+  ADD UNIQUE KEY `nom_livre` (`nom_livre`,`auteur`);
+
+--
+-- AUTO_INCREMENT pour les tables exportées
+--
+
+--
+-- AUTO_INCREMENT pour la table `details_livres`
+--
+ALTER TABLE `details_livres`
+  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
+/*!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 */;