Link to home
Start Free TrialLog in
Avatar of waiman
waiman

asked on

Locate records in ORACLE cursor expression using C#/ASP.NET

Hi guys...
I have a ORACLE stored procedure that returns a recordset and cursor expression:

OPEN P_RSET FOR
      SELECT CUST_ID, CURSOR( SELECT p.PRODUCT_CODE
                                                    FROM PRODUCT_TABLE p
                                                  WHERE p.CUST_ID = c.CUST_ID)  products                                  
      FROM CUSTOMER _TABLE c;


Can someone tell me how can get individual record within the products cursor using C#?  Should I use ORACLEDatareader/adapter?  How do I declare the parameters in the code?  Can I have a brief example pls.  Thanks a lot
ASKER CERTIFIED SOLUTION
Avatar of Ivo Stoykov
Ivo Stoykov
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of waiman
waiman

ASKER

Thanks... so in your example, I assume P2 is the returned recordset and P1 is the returned cursor expression for EACH P2 record right?  So do I need to have a loop to go through each P1?
yes you should use datareader to read ;-) the data

HTH

Ivo Stoykov