Oracle SP SELECT examples

Posts   
 
    
swallace
User
Posts: 648
Joined: 18-Aug-2003
# Posted on: 20-Dec-2004 17:22:39   

I'm an old MSSQL guy, and I'm stumped by the way Oracle does SELECT-type stored procedures (not action, but returning rows). Anyone know a link to a good website with a tutorial they can share? Seems like I've been through all of Googles.

Why can't Oracle make this easy?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 20-Dec-2004 18:17:21   

There are a couple in the ODP.NET examples simple_smile check the proc examples. They create a package, in the package they create the procs. For every resultset you have to return a REF CURSOR. LLBLGen Pro then takes care of loading the data into datatables/sets.

Frans Bouma | Lead developer LLBLGen Pro