CREATE OR REPLACE TYPE with IS TABLE OF

时间:2018-04-18 18:18:17

标签: oracle plsql user-defined-types

enter image description here

In this statement of create or replace type I am having an error in is table of. Here is the code:

CREATE or REPLACE TYPE Custos_SIN AS OBJECT 
(NUM_GRUPO VARCHAR2(30),CUSTO_TOTAL NUMBER, SINISTROS_TOTAL NUMBER);

CREATE or REPLACE TYPE custos_sin_table IS [here in red] TABLE OF Custos_SIN;

Do you know why?

1 个答案:

答案 0 :(得分:0)

据我记得PL / SQL,它应该是

CREATE or REPLACE TYPE custos_sin_table AS table of Custos_SIN;

不是

CREATE or REPLACE TYPE custos_sin_table IS table of Custos_SIN;