DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Global Package Variable Issue

  1. #1
    Join Date
    Jan 2009
    Posts
    10

    Global Package Variable Issue

    Hi All,

    I declared one global package variable a=10 inside Package spec.

    Iam able to access these variable when used inside PLSQL Block.

    when i try to access in the sql prompt iam getting error.


    example :-

    SQL>Select 1234+a from dual;

    Is there any way to use the globally declared variable from sql promt.

    Kindly help me to resolve this issue.

    Thanks!

    Regards,
    Tarus

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    you haven't defined a anywhere, you can only reference a in your package as that is where you have defined it, there is no such thing as a globally declared variable for the database

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width