PLSQL Statements
PLSQL Statements
PLSQL Statements
Homework Week #3
PL/SQL Virtual Training
1. DELETE FROM students;
This SQL statement will:
A. Not execute due to wrong syntax
B. Delete the first row from STUDENTS
C. Delete all rows from STUDENTS
D. None of the above
2. State whether each of the following SQL statements can be included directly in a PL/SQL
block.
Statement
Valid in
PL/SQL
Not Valid
in PL/SQL
X
X
X
X
X
X
X
X
X
3. True or False: When you use DML in a PL/SQL block, Oracle uses explicit cursors to
track the data changes. TRUE
4. EXPLICIT cursors are created by the programmer.
5. IMPLICIT cursors are created by the Oracle server.
14. What happens if we use the Marketing department (department_id=20) in the previous
script?