From 5a79ee7afb074bb5006cc25fc2ea4cff2ac265c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 11 Apr 2018 21:38:01 +0200 Subject: [PATCH] exo9: add sql schema of MyBd. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ROOT/exo9/MyBd.sql | 69 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 ROOT/exo9/MyBd.sql diff --git a/ROOT/exo9/MyBd.sql b/ROOT/exo9/MyBd.sql new file mode 100644 index 0000000..5cfd0a0 --- /dev/null +++ b/ROOT/exo9/MyBd.sql @@ -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 */; -- 2.34.1