SQL> CREATE TABLE to_table
2 (col1 NUMBER);

Table created.

SQL> CREATE OR REPLACE TRIGGER statement_trigger
2 AFTER INSERT ON to_table
3 BEGIN
4 DBMS_OUTPUT.PUT_LINE('After Insert Statement
Level');
5 END;
6 /

Trigger created.

SQL> CREATE OR REPLACE TRIGGER row_trigger
2 AFTER INSERT ON to_table
3 FOR EACH ROW
4 BEGIN
5 DBMS_OUTPUT.PUT_LINE('After Insert Row Level');
6 END;
7 /

Trigger created.


SQL> INSERT INTO TO_TABLE VALUES(1);
After Insert Row Level
After Insert Statement Level

1 row created.


SQL> BEGIN
2 INSERT INTO TO_TABLE VALUES(2);
3 INSERT INTO TO_TABLE VALUES(3);
4 INSERT INTO TO_TABLE VALUES(4);
5 INSERT INTO TO_TABLE VALUES(5);
6 INSERT INTO TO_TABLE VALUES(6);
7 INSERT INTO TO_TABLE VALUES(7);
8 INSERT INTO TO_TABLE VALUES(8);
9 INSERT INTO TO_TABLE VALUES(9);
10 INSERT INTO TO_TABLE VALUES(0);
11 END;
12 /

WAT LL BE THE O/P???

XPLAIN IT>>>>

Answer Posted / devraj

The above block will executed successfully.
Because there is no operation performed in any trigger to
use the just inserted rows i mean to say no read and
calcution.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In which language oracle has been developed?

661


What do you mean by a database transaction & what all tcl statements are available in oracle?

561


How to create a table interactively?

574


How do I know if oracle client is installed on windows?

504


how to convert .db (extention) database file into .dmp (extention ) for oracle database ?

2073






Explain the use of rows option in imp command.

609


you are a universe designer and report developer in BO, what type of information you gather from client?Briefly explain plz

1570


What the is the diff between local index and global index. give some example.

1152


What is a directory object?

601


Where do you use decode and case statements?

560


Explain the use of tables option in exp command.

601


Is it possible to set second Primary Key Constraint in a table in Oracle Database ?

653


What are the numeric comparison operations?

642


State any two functions of oracle?

644


How to return top 5 rows in oracle?

554