INSERT INTO THE (SELECT ...) VALUES (...)
DELETE THE (SELECT ...) WHERE ...
UPDATE THE (SELECT ...) SET ... WHERE ...
INSERT INTO tIntervenant (pknom, prenom, bureau, ltelephones, lspecialites)
VALUES (
'Dumas',
'Leonard',
typBureau('R','C',123),
typListeTelephones(0344234423),
typListeSpecialites()
);
INSERT INTO THE (SELECT i.ltelephones FROM tIntervenant i WHERE i.pknom='Dumas')
VALUES (0666666666);
INSERT INTO THE (SELECT i.lspecialites FROM tIntervenant i WHERE i.pknom='Dumas')
VALUES (typSpecialite('BD','SGBDR'));
L'emploi de typListeSpecialites()
permet de déclarer une collection imbriquée vide dans tIntervenant
. La collection ne contient aucun élément initialement, ils peuvent être ajoutés ultérieurement grâce à l'instruction INSERT INTO THE
.
DELETE THE (SELECT i.ltelephones FROM tIntervenant i WHERE i.pknom='Dumas') nt
WHERE nt.COLUMN_VALUE=0344234423;
UPDATE THE (SELECT i.lspecialites FROM tIntervenant i WHERE i.pknom='Dumas') nt
SET nt.technologie='SGBDRO'
WHERE nt.domaine='BD';