f2 SQL
f2 SQL
f2 SQL
Code that defines the recovery actions to be performed when execution-time errors occur. EXCEPTION
HANDLER
Each exception handler is consists of a _____ clause, which specifies an exception name. WHEN
The PRAGMA clause is used in predefined exception to tell the compiler to associate an exception name
with a specific Oracle error number. T
There are 2 parameters needed in the pragma declaration of an exception. T exception_name and
error_code.
Non-predefined exceptions has a standard Oracle error number (ORA-#####) and error message, but
not a predefined name. T
What is the first step in handing non-predefined exception? Exception name declaration
You can use the ________________ procedure to return user-defined error messages from stored
subprograms. RAISE_APPLICATION_ERROR
Each exception handler is consists of a _____ clause, which specifies an exception name.WHEN
PL/SQL record is a composite data type, you can refer to the whole record by its name and/or to
individual fields by their names. T
The type and the record declared in the outer block are visible within the outer block and the inner
block. T
In explicit cursor operations, the set of rows returned by a multiple-row query is called ________. Active
set
Non-predefined errors are raised explicitly. T37
Predefined exception
– NO_DATA_FOUND
– TOO_MANY_ROWS
– INVALID_CURSOR
– ZERO_DIVIDE
– DUP_VAL_ON_INDEX
(field_declaration[,field_declaration]...);
identifier type_name ; T
DECLARE
CURSOR cur_emps
END LOOP;
END;
CLOSE
Nothing is missing T
Open cursor
FETCH
The given code below declares an explicit cursor. What will cause an error in the code?
DECLARE
CURSOR cur_depts
SELECT * FROM departments WHERE location_id = 1700
ORDER BY department_name;
IS
SELECT * T
ORDER BY department_name;