Skip to content
Advertisement

How to access Package Public variable into SELECT Statement using EXECUTE IMMEDIATE?

/

/

error ORA-06553: PLS-221: ‘G_VAR’ is not a procedure or is undefined

Advertisement

Answer

Obviously, you cannot call an internal variable of a package like that, presumably might convert to this one

and call like this :

or this :

Edit : Indeed, not needed; you can alternatively call the statement by using EXECUTE IMMEDIATE as desired such as

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement