Database SA3 Flashcards
Triggers like subprograms may or may not have parameters.
False
Triggers can either be row-level or statement-level.
True
A ________ are triggers that are not part of the database.
APPLICATION
Database triggers execute automatically whenever a data event such as _______ occurs.
DML, DDL
A _______ triggers execute whenever a particular event occurs within an application.
APPLICATION
Event determines which DML operation causes the trigger to fire. Values are DELETE, UPDATE [OF column], and ______.
INSERT
The _______ trigger fires only once for each execution of the triggering statement (even if no rows are affected).
STATEMENT
The following determines when a DML trigger will execute: BEFORE, AFTER, ________.
INSTEAD OF
The ____ trigger timing executes the trigger body after the triggering DML event on a table.
AFTER
The ________trigger is the default type of DML trigger.
STATEMENT
Exception section is not allowed in triggers.
False
You specify a row trigger using FOR EACH ROW clause.
True
A DML trigger is a database trigger.
True
The following determines when a DML trigger will execute: BEFORE, AFTER, INSTEAD.
False
The given trigger header contains no error.
CREATE OR REPLACE TRIGGER emp_del_trigg AFTER DELETE ON employees
BEGIN <assume valid PL/SQL statements here> END;
Group of answer choices
True
False
True
A MUTATE table is an object that is currently being modified by a DML statement.
False
The CALL is a statement is used to invoke procedure in a trigger.
True
The ON SCHEMA cannot be used with SHUTDOWN and STARTUP events.
True
DDL Triggers can either be ON DATABASE or ON SCHEMA.
True
The database event triggers are fired by non-SQL events in the database.
True
The __________ cannot be used with SHUTDOWN and STARTUP events.
ON SCHEMA
The ON SCHEMA cannot be used with ____________ events.
Shutdown and startup
The ______ triggers can either be ON DATABASE or ON SCHEMA.
DDL
The code below will:
CREATE OR REPLACE TRIGGER log_create_trigg
AFTER CREATE ON SCHEMA
BEGIN
INSERT INTO log_table VALUES (USER, SYSDATE);
END;
The trigger fires whenever any type of object is created in your schema.