<<labele>>
declare
a=10
b=20,
begin
some statements
declare
a=30
c=40
end;
what is the A value in nested block?
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 |
What is bulk compiling in pl/sql.?
what are the advantages of using stored procedures? : Sql dba
what is sql server agent? : Sql dba
..........refers to the disk mirroring
wtite down triggr not any entry on Sunday
Why query optimization is needed?
What is sap sql?
What is embedded sql in db2?
What is a join query?
what is the use of HASH, LIST partitions?
How many types of database triggers can be specified on a table ? What are they ?
What is PL/SQL table ?