<<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
what is query cache in mysql? : Sql dba
what is the difference between cluster and non cluster index? : Sql dba
Is hadoop a nosql?
What is varray in pl sql?
Can a table contain multiple primary key’s?
Why do we use cursors?
How do I view a view in sql?
How can you load microsoft excel data into oracle? : aql loader
What are the types of records?
What is cursor and its types?
what is top in tsql? : Transact sql
How can I see all tables in sql?
How to check if a column is nullable before setting to nullable?
Does oracle roll back the transaction on an error?
Can you skip header records while loading? : aql loader