小编ash*_*ame的帖子

从PLSQL关联数组中选择?

使用关联数组时是否可以使用SELECT FROM?我通过.NET应用程序将数组传递给存储过程,并且我希望能够在从另一个表中进行选择时将该数组用作条件.假设我正在向程序传递一系列ID,我希望能够这样做:

select * from table1 where userID in (select column_value from array)

数组的类型在包中定义:

type id_array is type of number index by pls_integer

plsql

7
推荐指数
2
解决办法
2万
查看次数

标签 统计

plsql ×1