<<labele>>
declare
a=10
b=20,
begin
some statements
declare
a=30
c=40
end;
what is the A value in nested block?

Answer Posted / shekharjchandra

Please frame question correctly ...
Seems u r question is something like below

<<label>>
DECLARE
a NUMBER := 10 ;
b NUMBER := 20;
BEGIN
-- Some statement
NULL ;
DECLARE
a NUMBER := 30 ;
c NUMBER := 40 ;
BEGIN
-- Some statement
NULL ;
END ;
END ;
/


Obviously the value of a in nested block will be 30 (Check this topic in Scope and visibility in Oracle documentation)

regards
J

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is online transaction processing (oltp)? : Sql dba

625


Can we insert in view in sql?

674


table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

3533


Explain correlated query work?

682


What does bitemporal mean?

674






Does pdo prevent sql injection?

608


what is collation? : Sql dba

711


Can we insert data into materialized view?

617


Is sql developer case sensitive?

635


Can we create view in stored procedure?

607


What is mutating trigger?

679


what does the t-sql command ident_current does? : Transact sql

633


What is the requirement of self-join?

655


What found sql?

604


How do I remove sql plus from windows 10?

663