Commit 101a479d authored by Evenson Jeunesse's avatar Evenson Jeunesse

Update INSERT.sql

parent c2d88906
......@@ -11,7 +11,7 @@ VALUES
('Anaconda', 'Reptiles'),
('Moineau', 'Oiseaux');
INSERT INTO Especes(nom, classe) VALUES ('Chien', 'Homo Sapiens'); --test contraintes
INSERT INTO Clients (id, telephone, nom, prenom, date_naissance, adresse)
......@@ -20,19 +20,12 @@ VALUES
(2, '0610203050', 'Dupond', 'Anne', '1995-07-14', '50 rue de Nantes 75015 Paris'),
(3, '0614814050', 'Smith', 'Louis', '1980-10-28', '25 rue Saint Anne 75009 Paris');
INSERT INTO Clients (id, telephone, nom, prenom, date_naissance, adresse) VALUES (1, '06102030509999', 'Dupond', 'Anne', '1995-07-14', '50 rue de Nantes 75015 Paris');--test contraintes
INSERT INTO Clients (id, telephone, nom, prenom, date_naissance, adresse) VALUES (1, '0610203050', 'Dupond', 'Anne', '1800-07-14', '50 rue de Nantes 75015 Paris');--test contraintes
INSERT INTO Veterinaires (id, telephone, nom, prenom, date_naissance, adresse, specialite)
VALUES
(1, '0616814835', 'Martin', 'John', '1970-01-20', '10 rue Saint Anne 75009 Paris', 'Oiseaux'),
(2, '0616484255', 'Martin', 'Alex', '1987-05-21', '15 faubourg Saint Martin 60200 Compiegne', 'Mammiferes'),
(3, '0770028656', 'Bruley', 'Philippe', '1973-05-31', '20 rue de la gare 60200 Compiegne', 'Reptiles');
INSERT INTO Veterinaires (id, telephone, nom, prenom, date_naissance, adresse, specialite) VALUES (1, '06168148359999', 'Martin', 'John', '1970-01-20', '10 rue Saint Anne 75009 Paris', 'Oiseaux');--test contraintes
INSERT INTO Veterinaires (id, telephone, nom, prenom, date_naissance, adresse, specialite) VALUES (1, '0616814835', 'Martin', 'John', '1970-01-20', '10 rue Saint Anne 75009 Paris', 'Homo Deus');--test contraintes
INSERT INTO Veterinaires (id, telephone, nom, prenom, date_naissance, adresse, specialite) VALUES (1, '0616814835', 'Martin', 'John', '0000-00-00', '10 rue Saint Anne 75009 Paris', 'Oiseaux');--test contraintes
INSERT INTO Assistants (id, telephone, nom, prenom, date_naissance, adresse, specialite)
......@@ -41,11 +34,6 @@ VALUES
(4, '0854345689', 'Picard', 'Jacques', '1920-12-12', '19 rue Saint Gervais 60700 Pontpoint', 'Mammiferes'),
(5, '0536608783', 'Bouvier', 'Mathieu', '2000-01-10', '2 rue du Dahomey 60200 Compiegne', 'Poissons');
INSERT INTO Assistants (id, telephone, nom, prenom, date_naissance, adresse, specialite) VALUES (3, '0616445424', 'Dubois', 'Thomas', '1980-08-10', '15 faubourg Saint Martin 75010 Paris', 'Karl Marx');--test contrainte
INSERT INTO Assistants (id, telephone, nom, prenom, date_naissance, adresse, specialite) VALUES (3, '66666666666666', 'Dubois', 'Thomas', '1980-08-10', '15 faubourg Saint Martin 75010 Paris', 'Oiseaux');--test contrainte
INSERT INTO Assistants (id, telephone, nom, prenom, date_naissance, adresse, specialite) VALUES (3, '0616445424', 'Dubois', 'Thomas', '2100-08-10', '15 faubourg Saint Martin 75010 Paris', 'Oiseaux');--test contrainte
INSERT INTO Animaux(id, nom, dernierPoids, derniereTaille, date_naissance, espece)
VALUES
(1, 'Toutou', 50, 70, 2007, 'Chien'),
......@@ -55,7 +43,6 @@ VALUES
(5, 'Cacao', 10, 60, 2016, 'Chat'),
(6, 'Noisettes', 10, 60, 2013, 'Chat');
INSERT INTO Animaux(id, nom, dernierPoids, derniereTaille, date_naissance, espece) VALUES (5, 'Pioupiou', -15, 10, 2018, 'Moineau'); --test contrainte
INSERT INTO Proprietaires(client, animal)
VALUES
......@@ -66,9 +53,6 @@ VALUES
(3, 4);
(3, 6);
INSERT INTO Proprietaires(client, animal) VALUES (20, 1); --test contrainte clef etrangère
INSERT INTO Medicaments(nomMolecule, effets)
VALUES
('CH4O3', 'Créé des démangeaisons dans le cou'),
......@@ -102,11 +86,6 @@ VALUES
('Co2', 'Chat');
INSERT INTO Autorise(medicament, espece) VALUES ('Au4Co2H2O', 'Supersayen'); --test contraintes
INSERT INTO Autorise(medicament, espece) VALUES ('DOPE', 'Chien'); --test contraintes
INSERT INTO Traitements(id, nom, debut, duree, veterinaire, animal)
VALUES
(1,'Traitement contre les poux', '2019-05-30', 30, 1, 1),
......@@ -123,8 +102,6 @@ VALUES
(11,'Contre les chutes de poils', '2019-03-29', 55, 1, 6),
(12,'Pour renforcer la libido', '2019-03-29', 22, 2, 2);
INSERT INTO Traitements(id, nom, debut, duree, veterinaire, animal) VALUES (1,'Traitement contre les poux', '2019-05-30', 30, 1, 8); --test contrainte
INSERT INTO Traitements(id, nom, debut, duree, veterinaire, animal) VALUES (1,'Traitement contre les poux', '2019-05-30', 30, 666, 1); --test contrainte
INSERT INTO Prescriptions(traitement, medicament, quantite)
......@@ -144,7 +121,3 @@ VALUES
(11, 'Co2', 9),
(10, 'Au4Co2H2O', 1),
(9, 'Au4Co2H2O', 1);
INSERT INTO Prescriptions(traitement, medicament, quantite) VALUES (6, 'CH4O3', 50); --test contrainte
INSERT INTO Prescriptions(traitement, medicament, quantite) VALUES (1, 'DOPE', 50); --test contrainte
INSERT INTO Prescriptions(traitement, medicament, quantite) VALUES (2, 'Au4Co2H2O', 2); --test contrainte
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment