读书人

PL/SQL中集合出现“ORA-06533:上表超出

发布时间: 2013-02-25 10:23:36 作者: rapoo

PL/SQL中集合出现“ORA-06533:下表超出数量”的问题解决
VARRAY是在Oracle8G的时候引入的一个类型,是一种密集填充数组,更容易被理解成为一个传统的数组。在创建这些数组的时候,都有一个尺寸,需要非常注意的是VARRAY的下表是从1开始的,在其他很多变成语言中,数组的下表都是从0开始的,比如JAVA。在实际的使用中,初学者经常会出现如下的错误提示:ORA-06533:下表超出数量
例如下面的代码就会出现该错误:

EXTEND Collection Method

EXTEND is a procedure that adds elements to the end of a varray or nested table. The collection can be empty, but not null. (To make a collection empty or add elements to a null collection, use a constructor. For more information, see "Collection Constructors".)

The EXTEND method has these forms:

读书人网 >SQL Server

热点推荐