<<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 |
Why do we need unique key in a table?
How to get second highest salary from a table
What is materialized view in sql?
I want to know the difference between A Record Type and a Table.
Define implicit and explicit cursors.
what is variable in package specification
what is purge command explain about oracle performance tuning
2 Answers Accenture, eCentric Solutions,
What is example of database?
What are % TYPE and % ROWTYPE ? What are the advantages of using these over datatypes?
what is error ora-03113: end-of-file on communication channel?
What is difference between a PROCEDURE & FUNCTION ?
What is a CTE (Common Table Expression), and how is it different from a subquery?
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)