Home » SQL & PL/SQL » SQL & PL/SQL » How to use PL/SQL Collection Type in TABLE function(how to convert PL/SQL type to SQL Object Type) (Oracle 10gR2)
How to use PL/SQL Collection Type in TABLE function(how to convert PL/SQL type to SQL Object Type) [message #626650] Thu, 30 October 2014 05:57 Go to next message
balaji.chelladurai
Messages: 6
Registered: April 2014
Junior Member
I have a need to use a PL/SQL collection type(declared inside a package) in TABLE function. The packaged function receives the collection as an input parameter from a front-end application developed in C#.net. When I use the PL/SQL collection, I get "Cannot access rows from a non-nested table item" error.

I understand that the TABLE function can be used with Collection type created outside of PL/SQL as a SQL Object type, but the front-end app cannot pass the input as SQL Object type.

I could not use CAST function to convert the PL/SQL type to SQL object type to get it work with TABLE function.

Are there any alternative soltions available ?

Any help is highly appreciated.
Re: How to use PL/SQL Collection Type in TABLE function(how to convert PL/SQL type to SQL Object Type) [message #626653 is a reply to message #626650] Thu, 30 October 2014 06:03 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>Are there any alternative soltions available ?

You have not posted any solution, so how are we to know what are acceptable results?

Please read and follow the forum guidelines, to enable us to help you:

http://www.orafaq.com/forum/t/88153/0/ and read http://www.orafaq.com/forum/t/174502/
Re: How to use PL/SQL Collection Type in TABLE function(how to convert PL/SQL type to SQL Object Type) [message #626655 is a reply to message #626650] Thu, 30 October 2014 06:07 Go to previous message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Quote:
but the front-end app cannot pass the input as SQL Object type.


What does this mean? Why? There is no difference to pass a PL/SQL collection or a SQL one from C#.Net.

Previous Topic: Oracle Function to get ISO Country Code
Next Topic: Time Difference Between two Time
Goto Forum:
  


Current Time: Fri Apr 26 02:02:16 CDT 2024