-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase.sql
More file actions
56 lines (44 loc) · 1.16 KB
/
Copy pathdatabase.sql
File metadata and controls
56 lines (44 loc) · 1.16 KB
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
-- phpMyAdmin SQL Dump
-- version 4.0.6
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 21, 2014 at 08:46 PM
-- Server version: 5.5.33
-- PHP Version: 5.5.3
--
-- Database: `BASE_IDM`
--
-- --------------------------------------------------------
CREATE DATABASE `BASE_IDM`;
USE `BASE_IDM`;
--
-- Table structure for table `Etudiant`
--
CREATE TABLE `Etudiant` (
`ID_ETU` int(100) NOT NULL,
`ID_FORMA` int(100) NOT NULL,
`NOM_ETU` varchar(100) NOT NULL,
`PRENOM_ETU` varchar(100) NOT NULL
);
--
-- Table structure for table `Formation`
--
CREATE TABLE `Formation` (
`ID_FORMATION` int(100) NOT NULL,
`ID_UNI` int(100) NOT NULL,
`NOM_FORMA` varchar(100) NOT NULL
);
CREATE TABLE `Universite` (
`ID_UNIV` int(10) NOT NULL,
`NOM_UNIV` varchar(100) NOT NULL
);
INSERT INTO `Etudiant` (`ID_ETU`, `ID_FORMA`, `NOM_ETU`, `PRENOM_ETU`) VALUES
(1, 1, 'Alexandre', 'Geoffrey'),
(2, 2, 'Jean', 'Martin');
INSERT INTO `Universite` (`ID_UNIV`, `NOM_UNIV`) VALUES
(1, 'Université de Rennes'),
(2, 'Université de Nantes');
INSERT INTO `Formation` (`ID_FORMATION`, `ID_UNI`, `NOM_FORMA`) VALUES
(1, 1, 'MIAGE de Rennes'),
(2, 2, 'MIAGE de Nantes');