<<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 are sql injection vulnerabilities?
What is prepared statement in sql?
How subquery works in sql?
Hi how to import oracle sequence in Informatica? Please write stored procedure code that will import oracle sequence in Informatica SP transformation as per below scenario Oracle table product list Pro_id, pro_name 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights Now a new flat file with new product list needs to be added to oracle table product list with oracle sequence. flat file product Prono,pro_name, 1, 20 watt tube light 2, 30 watt tube light & target should be like 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights. 104, 20 watt tube light 105, 30 watt tube light thks reg suvarna joshi suvarnaatsuvarna@rediffmail.com
Can we rename a column in the output of sql query?
what is a view? : Sql dba
What are the types of dbms?
Mention what are different methods to trace the pl/sql code?
What is the command used to fetch the first 5 characters of a string?
What is the most restrictive isolation level? : Transact sql
What is sql profiling in oracle?
how to drop an existing table in mysql? : Sql dba
How to fetch values from testtable1 that are not in testtable2 without using not keyword?
how to include comments in sql statements? : Sql dba
Mention what does plv msg allows you to do?