Explain what Is The Difference Between Local And Global Variables Within A Package?

Category: QuestionsExplain what Is The Difference Between Local And Global Variables Within A Package?
Editor">Editor Staff asked 2 years ago

Explain what Is The Difference Between Local And Global Variables Within A Package?

1 Answers
Editor">Editor Staff answered 2 years ago

A local variable is defined within a package body and is only available to the constructs within the same package.
A global variable is one that is declared in the package specification. This can be referenced outside the package and is visible, to external objects that have access privilege on the package.