Skip to content
Advertisement

how to retrive data from VARRAY and filter it

i have to retrieve specific data from Varray for example

i want to retrieve the name where VARRAY includes AC1 i tried select * from exprement where seat='AC1';

Advertisement

Answer

You can use:

or


As an aside, if you defined seat as a nested table (rather than a VARRAY) then you could use the MEMBER OF operator:

But that doesn’t work for VARRAYs or associative arrays.

db<>fiddle here

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement