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



<<labele>> declare a=10 b=20, begin some statements declare a=30 c=40 end; wh..

Answer / 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

More SQL PLSQL Interview Questions

if i perform any operation on views such as insert, delete etc will my base table get affected?????

4 Answers  


What is a pdo connection?

0 Answers  


What is normalization and types of normalization?

22 Answers   Etisbew, F-TEC, Microsoft, TechProcess,


How many types of cursors supported in pl/sql?

0 Answers  


What is a schema sql?

0 Answers  






What is an exception in PL/SQL? What are the two types of exceptions?

0 Answers  


Does group by remove duplicates?

0 Answers  


What company owns postgresql?

0 Answers  


what is meant by databases

4 Answers  


What are three advantages to using sql?

0 Answers  


How do I create a memory optimized filegroup?

0 Answers  


what is the purpose of update command in oracle?

7 Answers   MBT,


Categories