TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Subhashkumar Yadav
716
1.3k
59.9k
After Update Trigger Delete Query not Working
Mar 9 2017 4:25 AM
Unable to delete record in trigger.
Can we write Delete statement in After Update Trigger in Oracale?
For Example : -
My Trigger :
Create or replace
TRIGGER TranxMaster_after_update
AFTER UPDATE ON Transaction
FOR EACH ROW
DECLARE vcrTranxID VARCHAR2(100);
BEGIN
INSERT INTO TRANSACTIONNew
( ID,
MOBILENO,
TrnTYPE,
AMOUNT,
TranxID)
VALUES
( :new.ID,
:new.MOBILENO,
:new.TrnTYPE,
:new.AMOUNT,
:new.TranxID)
SELECT TranxID INTO vcrTranxID FROM TransactionNew WHERE ID=:new.ID;
IF vcrTranxID IS NOT NULL THEN
DELETE FROM Transaction WHERE ID = :new.ID;
End IF;
END;
Reply
Answers (
5
)
How to get difference in two datetime in mysql
How to install Oracle database on my matchin.