Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Puzzled: CURSOR in Package

Re: Puzzled: CURSOR in Package

From: jane <janeyiu_at_optonline.net>
Date: Tue, 20 Nov 2001 18:54:45 GMT
Message-ID: <VFxK7.165308$%94.29618450@news02.optonline.net>


>>...Just think of the packaged cursor as a subroutine --
>>the interface......

Aha ! that's the gist of the concept I was missing ! That clears it up.
Thanks Tom and everyone !
jane

"Thomas Kyte" <tkyte_at_us.oracle.com> wrote in message
> recompiling the spec invalidates all dependent code.
> recompiling the body does not.
>
> The spec should never change, the body can be reimplemented over and over
and
> over without the cascading invalidations.
>
> Its like why we just put the prototype of the functions/procedures of the
> pacakge in the spec and their implementation in the body. Just think of
the
> packaged cursor as a subroutine -- the interface (inputs/outputs) goes
into the
> spec, the implementation (the query) into the body. You can change the
> implementation without affecting (invalidating and forcing recompilation)
of all
> dependent code.
Received on Tue Nov 20 2001 - 12:54:45 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US