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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
-- phpMyAdmin SQL Dump
-- version 3.2.1
-- http://www.phpmyadmin.net
--
-- Serveur: localhost
-- Généré le : Jeu 08 Avril 2010 à 13:04
-- Version du serveur: 5.1.43
-- Version de PHP: 5.3.0
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Base de données: `Formulaire`
--
-- --------------------------------------------------------
--
-- Structure de la table `question`
--
CREATE TABLE IF NOT EXISTS `question` (
`Id_Question` smallint(20) NOT NULL AUTO_INCREMENT,
`question` text NOT NULL,
`type` varchar(32) NOT NULL,
PRIMARY KEY (`Id_Question`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Contenu de la table `question`
--
INSERT INTO `question` (`Id_Question`, `question`, `type`) VALUES
(1, 'Quel est votre sexe?', ''),
(2, 'De quelle ville venez-vous?', '');
-- --------------------------------------------------------
--
-- Structure de la table `reponses`
--
CREATE TABLE IF NOT EXISTS `reponses` (
`Id_Reponse` smallint(20) NOT NULL AUTO_INCREMENT,
`Id_Q` smallint(20) NOT NULL,
`Reponse` text NOT NULL,
PRIMARY KEY (`Id_Reponse`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
--
-- Contenu de la table `reponses`
--
INSERT INTO `reponses` (`Id_Reponse`, `Id_Q`, `Reponse`) VALUES
(1, 1, 'homme'),
(2, 1, 'femme'),
(3, 2, 'mars'),
(4, 2, 'Paris'),
(5, 2, 'lyon');
-- --------------------------------------------------------
--
-- Structure de la table `votes`
--
CREATE TABLE IF NOT EXISTS `votes` (
`Id_Vote` int(200) NOT NULL,
`Id_Q` smallint(20) NOT NULL,
`Id_R` smallint(20) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Contenu de la table `votes`
--
INSERT INTO `votes` (`Id_Vote`, `Id_Q`, `Id_R`) VALUES
(0, 1, 1),
(0, 1, 1),
(0, 1, 2),
(0, 1, 1),
(0, 2, 3),
(0, 2, 3),
(0, 2, 4),
(0, 2, 5),
(0, 2, 3),
(0, 2, 3); |
Partager