连接从pl/sql函数中选择数据的子查询 我需要加入该子查询,因为它返回多行
连接子查询看起来像(我不知道确切的语法):连接从pl/sql函数中选择数据的子查询 我需要加入该子查询,因为它返回多行,sql,oracle,plsql,Sql,Oracle,Plsql,连接子查询看起来像(我不知道确切的语法): 我需要用id_arg连接它,id_arg是某个表的列 函数返回ArrayOfString 最终版本应该如下(我猜): 如果您的arrayofstrings(函数的返回类型)是在模式级别定义的,那么我应该在子查询中编写什么才能使其工作- create or replace type arrayofstrings as table of varchar2(32767); 然后您可以像这样使用您的函数: select id_arg, column_val
如果您的
arrayofstrings
(函数的返回类型)是在模式级别定义的,那么我应该在子查询中编写什么才能使其工作-
create or replace type arrayofstrings as table of varchar2(32767);
然后您可以像这样使用您的函数:
select id_arg, column_value from table(some_pl_sql_function(id_arg))
如果
arrayofstrings
(函数的返回类型)是在架构级别定义的,即-
create or replace type arrayofstrings as table of varchar2(32767);
然后您可以像这样使用您的函数:
select id_arg, column_value from table(some_pl_sql_function(id_arg))
你能提供示例数据和代码吗?你能提供示例数据和代码吗