Commit 302f64d8 authored by Xiang Li's avatar Xiang Li
Browse files

Update INSERT_RO_2.sql

parent 4ce3f16b
......@@ -30,8 +30,8 @@ INSERT INTO Espece VALUES ('chat', RefClasse1);
SELECT REF(E) INTO RefEspece1 FROM Espece E WHERE nom='chien';
SELECT REF(E) INTO RefEspece2 FROM Espece E WHERE nom='chat';
INSERT INTO Medicament VALUES ('BHRG', 'anti puce', (ListRefEspece(RefEspece1, RefEspece2)));
INSERT INTO Medicament VALUES ('KHFG', 'calmant', (ListRefEspece(RefEspece1)));
INSERT INTO Medicament VALUES ('BHRG', 'anti puce', (ListRefEspece(TRefEspece(RefEspece1), TRefEspece(RefEspece2))));
INSERT INTO Medicament VALUES ('KHFG', 'calmant', (ListRefEspece(TRefEspece(RefEspece1))));
SELECT REF(M) INTO RefMedicament1 FROM Medicament M WHERE nomMolecule='BHRG';
SELECT REF(M) INTO RefMedicament2 FROM Medicament M WHERE nomMolecule='KHFG';
......@@ -64,20 +64,12 @@ SELECT REF(T) INTO RefTraitement3 FROM Traitement T WHERE id=3;
INSERT INTO Clients VALUES
(
1, 0789653214, 'bond', 'james', TO_DATE('1985-01-12', 'YYYY-MM-DD'), '150 avenue de Paris'
1, 0789653214, 'bond', 'james', TO_DATE('1985-01-12', 'YYYY-MM-DD'), '150 avenue de Paris',
LAniamux(TAnimaux(1,'lechien', 15, 30, TO_DATE('1999-01-12', 'YYYY-MM-DD'), RefEspece1,ListRefTraitement(TRefTraitement(RefTraitement1), TRefTraitement(RefTraitement2))),
TAnimaux(2,'lechat', 12, 10, TO_DATE('1999-01-12', 'YYYY-MM-DD'), RefEspece2, ListRefTraitement(TRefTraitement(RefTraitement3))))
);
INSERT INTO Animaux VALUES
(
1,'lechien', 15, 30, TO_DATE('1999-01-12', 'YYYY-MM-DD'), RefEspece1,
ListRefTraitement(TRefTraitement(RefTraitement1), TRefTraitement(RefTraitement2))
);
INSERT INTO Animaux VALUES
(
2,'lechat', 12, 10, TO_DATE('1999-01-12', 'YYYY-MM-DD'), RefEspece2, ListRefTraitement(TRefTraitement(RefTraitement3))
);
INSERT INTO Veterinaires VALUES
(1, '0616814835', 'Martin', 'John', '1970-01-20', '10 rue Saint Anne 75009 Paris', RefClasse1,
......
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