Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


can we delete the trigger in a view? if yes why if not why?

Answers were Sorted based on User's Feedback



can we delete the trigger in a view? if yes why if not why?..

Answer / pradeep

As per my knowledge we can drop trigger crated on view see
below exp

CREATE OR REPLACE FORCE VIEW "SCOTT"."TEST_VIEW"
("EMPNO", "ENAME", "JOB", "MGR", "HIREDATE", "SAL", "COMM",
"DEPTNO") AS
select "EMPNO", "ENAME", "JOB", "MGR", "HIREDATE", "SAL", "
COMM", "DEPTNO" from emp;

SQL> create or replace
2 TRIGGER SCOTT.VIEW_TIG
3 INSTEAD OF INSERT OR DELETE OR UPDATE ON TEST_VIEW
4 BEGIN
5 NULL;
6 END;
7 /

Trigger created.

SQL> drop trigger VIEW_TIG ;

Trigger dropped.

Is This Answer Correct ?    11 Yes 0 No

can we delete the trigger in a view? if yes why if not why?..

Answer / sam

no we cannot delete trigger on a view.

Is This Answer Correct ?    12 Yes 7 No

can we delete the trigger in a view? if yes why if not why?..

Answer / kishore

create or replace
TRIGGER VIEW_TIG
INSTEAD OF INSERT OR DELETE OR UPDATE ON TEST_VIEW
BEGIN
NULL
END

1 create or replace
2 TRIGGER VIEW_TIG
3 INSTEAD OF INSERT OR DELETE OR UPDATE ON TEST_VIEW
4 BEGIN
5 NULL;
6* END;
SQL> /

Trigger created.

SQL> DROP TRIGGER VIEW_TIG;

Trigger dropped.

Is This Answer Correct ?    2 Yes 0 No

can we delete the trigger in a view? if yes why if not why?..

Answer / deep

YES OFFCOURSE ... WE CAN DELETE THE TRIGGER VIEW AS USING DROP COMMAND. IN ORDER TO DROP ANY TRIGGER



DROP TRIGGER TRIGGER_NAME;

TIGGER DROPPED.....

Is This Answer Correct ?    1 Yes 0 No

can we delete the trigger in a view? if yes why if not why?..

Answer / shashi bhusan

No

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More SQL PLSQL Interview Questions

How to place comments in pl/sql?

0 Answers  


what are the disadvantages of mysql? : Sql dba

0 Answers  


What is the use of count (*) in sql?

0 Answers  


what is the difference between stored procedure and packaged procedure

1 Answers   Google, Infosys,


Can I call a procedure inside a function?

0 Answers  


What are the three forms of normalization?

0 Answers  


Is crud a cuss word?

0 Answers  


What is package in pl sql with an examples?

0 Answers  


which tcp/ip port does sql server run on? : Sql dba

0 Answers  


what are numeric data types? : Sql dba

0 Answers  


Is sql a microsoft product?

0 Answers  


scope of exception handling in plsql

4 Answers   Wipro,


Categories