http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/oraarr.htm#i1059642上說的varray is ordered dataset and table is unordered dataset,
我自定义一个util_datatable is table of varchar2(100);
 v := new util_datatable('1','2','3','4','5','6','7','8','9','10','11','12','13','14');
然后循环把v打印出来, 顺序和我new的时候是一样的,并不是unordered啊。请问如何测试才能确定table是unordered dataset ? 

解决方案 »

  1.   

    An ordered set of data elements. All elements of a given array are of the same datatype. Each element has an index, which is a number corresponding to the element's position in the array. The number of elements in an array is the size of the array. Oracle Database allows arrays to be of variable size.varray的有序是指其可以通过下表进行操纵.
      

  2.   

    varray  可变数组的下标是有规律的 所以你循环肯定是根据下标来的
      

  3.   

    new的时候用乱序,再分别看下table和varray的效果。
      

  4.   

    我问的是table,怎么回答我varray ?
      

  5.   

    to chogo:varray 和 table 打印出一样的效果~