Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: sql more intelligent
thanks Dave, so how do you use cursors? can you give me a quick example,
thanks in advance
Dave Hau wrote:
> Paul wrote: >
> > > You can do this by writing a PL/SQL procedure. Do the first select > ("select name from thistable where group = 'high'") and put the result > into a cursor. Then iterate through this cursor while building the > dynamic SQL statement for the second statement ("select > firstschema.result+secondschema.result from commontable"). Then execute > the dynamic SQL and return the result. > > Cheers, > Dave > > > > >
-- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop_at_Netscape! http://shopnow.netscape.com/Received on Wed Jul 02 2003 - 16:58:18 CDT