<<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 |
How to get employee name from employee table which is the fiveth highest salary of the table
What has stored procedures in sql?
What is the first action to perform a query? Suppose I have four tables and five joins and my query is getting slow day by day.
Can we use SQL%ISOPEN in implicit cursors? Does this attribute works properly in Implicit Curosors?
Which is better trigger or stored procedure?
Show the two pl/sql cursor exceptions.
What are tables and fields in the database?
Explain how can you save or place your msg in a table?
Why is sql important?
What are different joins used in sql?
How do I sort a table in sql?
What is difference between select statement and cursor
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)