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 |
Is nosql relational?
how to sort records in sql?
Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?
Is it possible to use LONG columns in WHERE clause or ORDER BY?
What are the benefits of triggers?
What is the least restrictive isolation level? : Transact sql
I have a tablle like this: cust acc ----------- a 1 b 2 b 3 c 4 c 5 c 6 I Want below o/p: cust acc --------------- a 1 b 2|3 c 4|5|6 Please any one can you have any ideas share me. I have urgent requirement.
1.when will you use week refcursor and when will you use strong ref cursor ? 2.what is the use of sql trace..how do you use it ? 3.can you please send all the sql plus commands...like set line 6000....
What is the difference between mdf and ndf files?
package specification-3 procedures package body-2 procedures will is execute
What is the difference between nested table and varray?
Can a select statement fire a trigger?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)