Folks,
I have an interesting question regarding public variables. See the package declaration at the end of this message. In the create package declaration, I have a public variable called ag_count which is initialized to 0.
When I called the function testg.f1 from the SQL*Plus command line as below:
set serveroutput on
declare
result number :=0;
begin
result := testg.f1;
end;
/
run
I get the result for ag_count
ag_count :2
PL/SQL procedure successfully completed
Which is correct. However, if I type run a second time I get
I have an interesting question regarding public variables. See the package declaration at the end of this message. In the create package declaration, I have a public variable called ag_count which is initialized to 0.
When I called the function testg.f1 from the SQL*Plus command line as below:
set serveroutput on
declare
result number :=0;
begin
result := testg.f1;
end;
/
run
I get the result for ag_count
ag_count :2
PL/SQL procedure successfully completed
Which is correct. However, if I type run a second time I get