【发布时间】:2021-01-08 13:24:57
【问题描述】:
我有一个集合类型对象
create or replace
TYPE "COLLECTION_OBJECT" AS OBJECT
(
attribute1 integer,
attribute2 date,
attribute2 integer,
) ;
然后在我的 pl/sql 过程中,我有这样创建的集合表。
create or replace
TYPE "COLLECTION_TABLE" as table of COLLECTION_OBJECT;
我正在像这样进行批量收集。
SELECT COLLECTION_OBJECT(attribut1,attribut3,attribut3,attribute4) BULK COLLECT
INTO result_set
FROM TABLE(COLLECTION_TABLE)
我在 pl/sql 函数中收集 COLLECTION_OBJECT 中的数据 3 次,上面的查询在 COLLECTION_OBJECT 中收集数据后将数据添加到 result_set 3 次。
我的问题是。
收集到 COLLECTION_OBJECT 中的数据会在每次批量收集到 result_set 时被清除,还是会一直累加到最后?
我尝试在线搜索得到,当批量收集运行时,它会在读取后释放内存,但我没有从 Type 对象中获得任何与批量收集相关的信息,所以我没有信心。
【问题讨论】: