Plsql 集合属性的含义是什么

Plsql 集合属性的含义是什么,plsql,Plsql,我想在我的代码中找到集合属性。 我只知道集合对象及其访问方法。 有人能给我解释一下“集合属性”是什么意思吗?解决这些问题的最佳途径是Oracle官方文档。在您的案例中,它是关于收集方法的,请参见。收集“方法”有时被称为“属性”。因此,集合的“属性”是可以在集合上调用的方法: Method Type Description DELETE Procedure Deletes elements from collection. TRIM Procedure Deletes e

我想在我的代码中找到集合属性。 我只知道集合对象及其访问方法。
有人能给我解释一下“集合属性”是什么意思吗?

解决这些问题的最佳途径是Oracle官方文档。在您的案例中,它是关于收集方法的,请参见。收集“方法”有时被称为“属性”。因此,集合的“属性”是可以在集合上调用的方法:

Method  Type       Description
DELETE  Procedure  Deletes elements from collection.
TRIM    Procedure  Deletes elements from end of varray or nested table.
EXTEND  Procedure  Adds elements to end of varray or nested table.
EXISTS  Function   Returns TRUE if and only if specified element of varray or nested table exists.
FIRST   Function   Returns first index in collection.
LAST    Function   Returns last index in collection.
COUNT   Function   Returns number of elements in collection.
LIMIT   Function   Returns maximum number of elements that collection can have.
PRIOR   Function   Returns index that precedes specified index.
NEXT    Function   Returns index that succeeds specified index.
因此,您在问题中提到的“访问方法”就是您正在寻找的“属性”

不幸的是,Oracle重载了术语“属性”,但在使用上并不一致。例如,
%NOTFOUND
%ROWTYPE
是游标属性


分享和享受。

不要低估自学的力量。见我的答案。你有所有的例子在文档中。类型客户是由pls_integercust客户的int索引表;那么我的属性是什么?
类型customer是pls\u integer的int索引表
是名称类型
customer
的声明,该类型是
int
类型的元素集合,索引类型为
pls_integer
。然后,
cust-customer
是一个名为
cust
的变量声明,该变量的类型是前面定义的
customer
。那么,你对什么属性感兴趣呢?我从来没有听说过收集方法被称为“属性”。嗯,一个人一生都在学习。:-)谢谢,鲍勃。