What Is an Anonymous Block?
Submitted by: AdministratorAn anonymous block is a PL/SQL code block with no name. It consists of three parts:
► Declaration Part - Defining local variables and local procedures. Declaration part is optional.
► Execution Part - Defining execution logic with executable statements. Execution part is required.
► Exception Part - Defining error handling logics. Exception part is optional.
Here how a complete anonymous block should look like:
DECLARE
-- Declaration statements
BEGIN
-- Executable statements
EXCEPTION
-- Error handling statements
END;
Submitted by: Administrator
► Declaration Part - Defining local variables and local procedures. Declaration part is optional.
► Execution Part - Defining execution logic with executable statements. Execution part is required.
► Exception Part - Defining error handling logics. Exception part is optional.
Here how a complete anonymous block should look like:
DECLARE
-- Declaration statements
BEGIN
-- Executable statements
EXCEPTION
-- Error handling statements
END;
Submitted by: Administrator
Read Online Oracle Database Job Interview Questions And Answers
Top Oracle Database Questions
☺ | How To Call a Stored Function in Oracle? |
☺ | How Run SQL*Plus Commands That Are Stored in a Local File? |
☺ | How To Invoke the Data Pump Import Utility? |
☺ | How To Use Values from Other Tables in UPDATE Statements using Oracle? |
☺ | What Happens to Indexes If You Drop a Table? |
Top DB Oracle Categories
☺ | Oracle PL-SQL Interview Questions. |
☺ | Oracle DBA Interview Questions. |
☺ | Oracle D2K Interview Questions. |
☺ | OCI Interview Questions. |
☺ | Forms Reports Interview Questions. |