1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
create type etudiant_type
/
create type etudiant_form_type as object(etudiants_form ref etudiant_type)
/
create type etudiants_form_type as table of etudiant_form_type
/
create type formation_type as object
( nom_formation varchar2(20),
desc_formation varchar2(50),
lst_etudiants_form etudiants_form_type)
/
create type module_type
/
create type module_etu_type as object(modules_etu ref module_type)
/
create type modules_etu_type as table of module_etu_type
/
create or replace type etudiant_type as object
( num_etudiant number,
nom_etudiant varchar2(15),
prenom_etudiant varchar2(20),
adresse_etudiant varchar2(50),
date_naissance_etudiant date,
formation ref formation_type,
lst_modules_etudiant modules_etu_type)
/
create type module_ens_type as object(modules_ens ref module_type)
/
create type modules_ens_type as table of module_ens_type
/
create type enseignant_type as object
( nom_enseignant varchar2(15),
prenom_enseignant varchar2(20),
adresse_enseignant varchar2(50),
numero_tel_enseignant varchar2(10),
lst_modules_enseignant modules_ens_type)
/
create type td_type as object
( volume_td number,
enseignant_td ref enseignant_type)
/
create type tds_type as table of td_type
/
create type tp_type as object
( volume_tp number,
enseignant_tp ref enseignant_type)
/
create type tps_type as table of tp_type
/
create type cm_type as object
( volume_cm number,
enseignant_cm ref enseignant_type)
/
create type cms_type as table of cm_type
/
create type etudiant_mod_type as object(etudiants_mod ref etudiant_type)
/
create type etudiants_mod_type as table of etudiant_mod_type
/
create or replace type module_type as object
( code_module number,
nom_module varchar2(15),
desc_module varchar2(50),
credit_module number,
td tds_type,
tp tps_type,
cm cms_type,
lst_etudiants_modules etudiants_mod_type)
/
create table tbl_formation of formation_type(primary key(nom_formation)) nested table lst_etudiants_form store as tab_formation
/
create table tbl_etudiant of etudiant_type(primary key(num_etudiant)) nested table lst_modules_etudiant store as tab_etudiant
/
create table tbl_enseignant of enseignant_type(primary key(nom_enseignant)) nested table lst_modules_enseignant as tab_enseignant
/
create table tbl_module of module_type(primary key(code_module)) nested table lst_etudiants_modules as tab_module
/ |
Partager