因此,如果尝试这种anonymos块:声明嵌套表类型时,“AS”和“IS”有什么区别?
DECLARE
TYPE nums IS TABLE OF integer;
nnum nums;
BEGIN
nnum := nums(1,2);
dbms_output.put_line(nnum.COUNT);
END;
这个工作,但当此:TYPE nums IS TABLE OF
我与AS
取代IS
,甲骨文提供了错误:
ORA-06550: Encountered the symbol "TABLE" when expecting ...
我的文档看, “AS”和“IS”都用于声明嵌套表类型。
,甚至,from hereTo declare nested table types, use the CREATE TYPE ... AS TABLE OF statement
为什么要我是错误在我的情况下使用 “AS”?这里有什么不同?