Académique Documents
Professionnel Documents
Culture Documents
com/academy
Anonymous PL/SQL Unnamed blocks of code not stored in the database and do not
Block exist after they are executed
Named PL/SQL blocks that are stored in the database and can be
Subprograms declared as procedures or functions
SQL statements
BEGIN Mandatory
PL/SQL statements
Copyright 2016, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their
respective owners.
A. BEGIN
END;
C. DECLARE
BEGIN
END;
A. Fails because the executable section must contain at least one statement.
B. Fails because there is no executable section (BEGIN is missing).
C. Fails because the executable section must contain at least one statement.
D. Succeeds.
B. __Procedures____ and __ Functions___ are named blocks and are stored in the
database.
4. In Application Express, create and execute a simple anonymous block that outputs
Hello World.
BEGIN
DBMS_OUTPUT.PUT_LINE ('Hello World');
END;
5. Create and execute a simple anonymous block that does the following:
Copyright 2016, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their
respective owners.