Insertion dans les collections imbriquées

Insertion de collections d'objets

INSERT INTO nom_table (..., attribut_type_collection, ...)
VALUES (
 ...
 nom_type_collection(
  nom_type_objet(valeur1, valeur2, ...), 
  nom_type_objet(valeur1, valeur2, ...), 
  ...);
 ...
);

Insertion d'enregistrements et de collections imbriqués

INSERT INTO tIntervenant (pknom, prenom, bureau, ltelephones, lspecialites)
VALUES (
'Crozat', 
'Stéphane', 
typBureau('PG','K',256),
typListeTelephones (0687990000,0912345678,0344231234),
typListeSpecialites (typSpecialite ('BD','SGBDR'), typSpecialite('Doc','XML'), typSpecialite('BD','SGBDRO'))
);
INSERT INTO tIntervenant (pknom, prenom, bureau, ltelephones, lspecialites)
VALUES (
'Vincent', 
'Antoine', 
typBureau('R','C',123),
typListeTelephones (0344231235,0687990001),
typListeSpecialites (typSpecialite ('IC','Ontologies'), typSpecialite('BD','SGBDRO'))
);
Mode diaporama