How to call a stored procedure inside a trigger? Give an
example.
Answer / pardeep
Using Call keyword we can call procedure inside trigger.
e.g.
CREATE OR REPLACE TRIGGER foo
BEFORE DELETE OR INSERT OR UPDATE ON <<table_name>>
FOR EACH ROW
BEGIN
CALL PROCEDURE_NAME();
END;
/
Is This Answer Correct ? | 16 Yes | 5 No |
I need to get the values of the previous quarter.how to do this?eg: if my cuurent month is may i need to get the datas of the month jan,feb,march.Can it be done in oracle.I tried with date function q but for the month jan its not retriving the previous quarter(oct-dec).how to solve this.plpz anyone help me?
What is a public synonym?
What is difference between SUBSTR and INSTR?
Please help me how to write a Query to change the primary key constraint from 1 attribute to another attribute in a table
What is the difference between the Oracle ODBC driver and a Microsoft ODBC (Open Database Connectivity) Driver?
How to use "in" parameter properly?
Give the sequence in which triggers fired during insert operations, when the following 3 triggers are defined at the same block level ?
1.how to extract the second highest salary from emp table having sal as a column which contains the salary of all employee of an organisation.
What is the maximum number of CHECK constraints that can be defined on a column ?
In oracle there is column command, how will you explain that?
What is RULE-based approach to optimization ?
is there a tool to trace queries, like profiler for sql server?