Utilisation de TYPE IS TABLE
Bonjour,
voilà ce que j'ai fait mais la compilation ne passe pas :
Code:
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
|
CREATE OR REPLACE TYPE daily_plan
AS OBJECT (
fullDay NUMBER(1),
debAmDate DATE,
finAmDate DATE,
worktimeAm NUMBER,
debPmDate DATE,
finPmDate DATE,
worktimePm NUMBER,
worktimeDay NUMBER
);
/
CREATE OR REPLACE TYPE tab_daily_plan IS TABLE OF daily_plan INDEX BY BINARY_INTEGER;
/
CREATE OR REPLACE TYPE planning
AS OBJECT (
horaire tab_daily_plan
);
Line Pos Text
1 Create type, executed in 16 ms
14 Create type, executed in 63 ms
14 24 PLS-00355: utilisation de la table pl/sql non autorisée dans ce contexte
13 PL/SQL: Compilation unit analysis terminated
17 Create type, executed in 31 ms
19 15 PLS-00905: l'objet USER.TAB_DAILY_PLAN n'est pas valide
16 PL/SQL: Compilation unit analysis terminated
Total execution time 141 ms |
Quelles sont les modalités d'utilisation CREATE IS TABLE OF et quelle est la bonne solution pour traiter mon problème ?
Merci