的Oracle。
我输入以下内容
create or replace
type string_varray as varray(200) of varchar2(1000);
我想将varray的大小从200增加到1000我试过以下声明并没有为我做好
alter type string_varray MODIFY ( varray(1000) of varchar2(1000)) cascade;
Error
Error starting at line 4 in command:
alter type string_varray MODIFY (varray(1000) of varchar2(1000)) cascade
Error report:
SQL Error: ORA-22324: altered type has compilation errors
ORA-22328: object "DSC_APP"."STRING_VARRAY" has errors.
PLS-00103: Encountered the symbol "(" when expecting one of the following:
limit element
22324. 00000 - "altered type has compilation errors"
*Cause: The use of the ALTER TYPE statement caused a compilation error.
*Action: Correct the error reported and resubmit the statement.
答案 0 :(得分:1)
试试这个 -
alter type string_varray modify limit 1000;
您正在使用的语法将增加元素大小 -
alter type string_varray modify element type varchar2(2000) cascade;