what is the meaning and difference between the global and local variables.
Printable View
what is the meaning and difference between the global and local variables.
typically, in programing
global and local variables refer to the scope of a variable.
global variables persist throughout some section of code where local variables persist throughout a smaller subset of the code.
in oracle you can have a package that defines a global variable and is available throughout all procedures in that package but if you define a variable within one of the procedures in that package that variable is local and available only to that procedure.