在Oracle中,[select from table()]是什么意思?

R-K*_*R-K 2 sql oracle plsql

我正在尝试在sql中搜索有关此主题的信息,但搜索未显示结果。

SELECT * FROM TABLE(package/procedure/function);
Run Code Online (Sandbox Code Playgroud)

上面的sql语句属于哪个主题?我可以链接到文档吗?

Bon*_*ist 5

The TABLE collection expression is described here in the Oracle documentation.

In short, it is used to convert a collection or pipelined function into a table that can be queried by a SELECT statement.

Typically, the collection must be of a datatype that is defined at the database level (i.e. a datatype that was created by a create or replace type ... statement).

e.g.

select *
from   table(sample_pkg.func_that_rtrns_array);
Run Code Online (Sandbox Code Playgroud)