RelationalDBDesign
SiteMap
PL/SQL
Stored Objects
PL/SQL Programming
Using Explicit Cursors
«Prev
Next»
Programming PL/SQL Objects
Declaring PL/SQL Variables
Common Tools PL/SQL
PL/SQL Variables
Variable Data Types
PL/SQL var bind host
DBMS Output Line
Creating Naming Convention
Building Queries PL/SQL
PL/SQL Datatypes
PL/SQL Block Guidelines
Variables Nested Blocks
Block Identifiers Literals
Adding PL/SQL Comments
Implicit Datatype Conversions
Operators in PL/SQL
PL/SQL Block Conclusion
PL/SQL Datatypes - Quiz
Writing Control Structures
If-then Else
Using If Clause
if then-else syntax
PL/SQL Begin Loop
For/While Loops
Labels Goto Statement
PL/SQL Control Structures
Control Structures - Quiz
Composite Datatypes
PL/SQL Table Structure
PL/SQL Record
Row Type Attributes
Composite Types Summary
Using Explicit Cursors
What is Cursor
Implicit Cursors
Explicit Cursors
CursorBlock Structure
Open Cursor Fetch Records
Close Cursor
Building Cursor Block
for Loop Cursor
Cursor Block Conclusion
PL/SQL Exceptions
PL/SQL Exception
Exception Types
Handling Predefined Exceptions
User Defined Exceptions
Raise Explicit Exceptions
Function Exceptions
PL/SQL Error Handling
PL/SQL Cursor Fetch Statement - Quiz
Each question is worth one point. Select the best answer or answers for each question.
1.
What happens when records are found using a
FETCH
statement?
Please select all the correct answers.
A.
The
FETCH
statement closes the cursor.
B.
The
FETCH
statement opens the cursor.
C.
The
FETCH
statement loads the current record into variables.
D.
The
FETCH
statement creates variables to hold the current record.
2.
What is the best way to write a cursor?
Please select the best answer.
A.
Use
OPEN
,
FETCH
, and
CLOSE
statements
B.
Use a
FOR
LOOP
statement
C.
Use a
LOOP
statement
D.
Use a
WHILE LOOP
statement
3.
Which method should be used when the
STORE_COST
of all records within the PRODUCT table should be increased by 10%?
Please select all the correct answers.
A.
Use a single
UPDATE
statement for all the records.
B.
Use an explicit cursor.
C.
Use an implicit cursor.
D.
Use one
UPDATE
statement for each record.