can we delete the trigger in a view? if yes why if not why?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
There is a table, In one column it has implemented a index, but the index is disturbed by the regular dml statements.. but still we need to keep the index. how it is possible?
Is it possible to include an insert statement on the same table to which the trigger is assigned?
Types of indexes. What is the default key created when a primary key is created in a table ?
Is the primary key an index?
What is indexing in sql and its types?
How many levels can subqueries be nested in a FROM clause?
List out the acid properties and explain?
How to fetch values from testtable1 that are not in testtable2 without using not keyword?
display null value rows with out using null function?
what is a relationship and what are they? : Sql dba
In table a 1lakh data is present,in table b 20 thousand data is present, to get unique data from table a and b which join to be considered. whether right outer join or left inner join.
how to write date and time literals? : Sql dba