Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: global variables
If this is in SQL -
Then create a package without a body, but declaring
some variables.
Persistence is NOT the same as for tables though, as each instantiation of the package is local to a single session, but it may get you somewhere closer to where you want to be.
You could possibly play games with CONTEXTs in Oracle 8i though - I'll have to think about that one
--
Jonathan Lewis
Yet another Oracle-related web site: www.jlcomp.demon.co.uk
Dan Hess wrote in message <3761AE7B.C2FF344E_at_cornell.edu>...
>I'm sure this is basic, but how can I declare global variables to
>persist outside of blocks, just as tables do?
>
>For example, how would I declare a counter variable containing the
>number of times a table is accessed, that has the same accessability as
>the table?
>
>Thanks a million,
>Dan
>
Received on Sat Jun 12 1999 - 04:38:17 CDT