Ex:
Create Or Replace Type "TP_teste" As Object
(
campo1 tabela.id%type,
campo2 tabela.desc%type
)
Quando tento compilar ocorre o seguinte erro:
Compilation errors for TYPE TP_teste
Error: PLS-00201: identifier 'tabela.id' must be declared
Line: 8
Text: campo1 tabela.id,
Error: PL/SQL: Compilation unit analysis terminated
Line: 1
Text: Create Or Replace Type "TP_teste" As Object
Alguém já conseguiu fazer um type referênciando um campo dessa forma ????
Desde já agradeço qualquer ajuda.