我想通過單個參數傳遞多個值。參數中的多個值 - SQL(Oracle)
select
id,
item_number
from AGILE.item_p2p3_query where subclass='2477110' and date32 is not null
and item_number in : p **// passing one parameter would work. But when I pass two parameters like EN 60439-1:1999,EN 60439-3:1991 doesn't seem to work**
--in ('EN 60439-3:1991','EN 60439-1:1999') // this will work
請建議僅SQL建議,而不是PL/SQL,我會在報表中使用此。
也許這個職位可能會幫助http://stackoverflow.com/questions/13580245/sending-an-array-of-values-to-oracle-procedure-to-use-in-where-in-clause –