Commit cfd0c28b authored by Evenson Jeunesse's avatar Evenson Jeunesse
Browse files

Update Inser.sql

parent c01934ba
INSERT INTO Classes(nom)
VALUES
('Mammiferes'),
('Poissons'),
('Oiseaux'),
('Reptiles');
INSERT INTO Classes VALUES('Mammiferes');
INSERT INTO Classes VALUES('Poissons');
INSERT INTO Classes VALUES('Oiseaux');
INSERT INTO Classes VALUES('Reptiles');
INSERT INTO Especes(nom, classe)
VALUES
('Chien', 'Mammiferes'),
('Anaconda', 'Reptiles'),
('Moineau', 'Oiseaux');
INSERT INTO Especes VALUES ('Chien', 'Mammiferes');
INSERT INTO Especes VALUES ('Anaconda', 'Reptiles');
INSERT INTO Especes VALUES ('Moineau', 'Oiseaux');
INSERT INTO Clients VALUES(1, '0610203050', 'Dupond', 'Anne', '1995-07-14', '50 rue de Nantes 75015 Paris',XMLType('
INSERT INTO Clients VALUES(1, '0610203050', 'Dupond', 'Anne', TO_DATE('1995-07-14', 'YYYY-MM-DD'), '50 rue de Nantes 75015 Paris');
INSERT INTO Clients VALUES(2, '0610203050', 'Dupond', 'Anne', TO_DATE('1995-07-14', 'YYYY-MM-DD'), '50 rue de Nantes 75015 Paris');
INSERT INTO Clients VALUES(3, '0614814050', 'Smith', 'Louis', TO_DATE('1980-10-28', 'YYYY-MM-DD'), '25 rue Saint Anne 75009 Paris');
INSERT INTO Animaux VALUES (1, 'Dylan', 50, 70, 2007, 'Chien', XMLType('
<traitement>
<nom>Kiki</nom>
<debut>2019-12-05</debut>
......@@ -34,14 +36,52 @@ INSERT INTO Clients VALUES(1, '0610203050', 'Dupond', 'Anne', '1995-07-14', '50
</traitement>
'));
INSERT INTO Animaux(id, nom, dernierPoids, derniereTaille, date_naissance, espece)
VALUES
(1, 'Toutou', 50, 70, 2007, 'Chien'),
(2, 'Hector', 70, 15, 2015, 'Moineau'),
(3, 'James', 20, 350, 2008, 'Anaconda');
INSERT INTO Proprietaires(client, animal)
VALUES
(2, 2),
(1, 3),
(2, 1);
INSERT INTO Animaux VALUES (2, 'Hector', 70, 15, 2015, 'Moineau', XMLType('
<traitement>
<nom>Salem</nom>
<debut>2019-12-05</debut>
<duree>2</duree>
<veterinaire>
<nom>Michel</nom>
<prenom>Ramy</prenom>
<telephone>07895897</telephone>
<date_naissance>1958-09-12</date_naissance>
<adresse>12 rue des pommiers Paris</adresse>
</veterinaire>
</traitement>
'));
INSERT INTO Animaux VALUES (3, 'James', 20, 350, 2008, 'Anaconda', XMLType('
<traitement>
<nom>Kiki</nom>
<debut>2019-12-05</debut>
<duree>2</duree>
<prescription>
<quantite_jour>2</quantite_jour>
<medicament>
<nom_molecule>TQKJ</nom_molecule>
<effets>anti puce</effets>
</medicament>
</prescription>
<prescription>
<quantite_jour>3</quantite_jour>
<medicament>
<nom_molecule>KHT6F</nom_molecule>
<effets>detartrant</effets>
</medicament>
</prescription>
<veterinaire>
<nom>Jacky</nom>
<prenom>Elsa</prenom>
<telephone>07895623</telephone>
<date_naissance>1986-12-03</date_naissance>
<adresse>30 rue des pommiers Paris</adresse>
</veterinaire>
</traitement>
'));
INSERT INTO Proprietaires VALUES (2, 2);
INSERT INTO Proprietaires VALUES (1, 3);
INSERT INTO Proprietaires VALUES (2, 1);
Supports Markdown
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