Chapter 12. Cursor Variables
Cursor variables, first available in PL/SQL Version 2.3, are reference pointers to a cursor’s result set. The main advantage of a cursor variable is that it allows us to easily pass the result of a query among different PL/SQL blocks, such as procedures or functions. This chapter tests your ability to define and use cursor variables in your applications.
Beginner
12-1. | Which of the following statements describe a cursor variable?
|
12-2. | What are the two steps you must take to declare a cursor variable? |
12-3. | Which of the following declarations of REF CURSOR types are valid, and which are invalid?
|
12-4. | Given the following definitions of the table and REF CURSOR: CREATE TABLE environmental_disaster (
company_responsible VARCHAR2(100),
occurred_on DATE;
);
DECLARE
TYPE disasters_cvt IS REF CURSOR RETURN environmental_disaster%ROWTYPE;Which of the declarations of cursor variables are valid, and which are invalid?
|