1 declare 2x1 number;
3 begin 4x1 :=5;
5 declare 6x2 number ;
7 begin 8x2 :=6;
9 x1:=x2 ;
10 end;
11 x2 := X1 ;
12 * end;
13 / x2 :=X1;
*error at line 11:ORA-06550 :line 11,column 1:PLS-00201: identifier 'X2' must be declared ORA-06550:line 11,column1: PL/SQL:statement ignored while executing the above nested block, getting the error as"identifier 'X2' must be declared".witho ut declaring the variables inside the block how can u use the variable.Also i want to view the output of that variable without using DBMS_OUTPUT package.
3 begin 4x1 :=5;
5 declare 6x2 number ;
7 begin 8x2 :=6;
9 x1:=x2 ;
10 end;
11 x2 := X1 ;
12 * end;
13 / x2 :=X1;
*error at line 11:ORA-06550 :line 11,column 1:PLS-00201: identifier 'X2' must be declared ORA-06550:line 11,column1: PL/SQL:statement ignored while executing the above nested block, getting the error as"identifier 'X2' must be declared".witho ut declaring the variables inside the block how can u use the variable.Also i want to view the output of that variable without using DBMS_OUTPUT package.
Comment