Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

I don't want to use FOR EACH ROW condition in trigger

$
0
0
Hi All,

I have created a trigger in my database for updation of previous year values while i upload data into RS_KPI_DLR_DETAIL table.

here is the Trigger definition-

CREATE TRIGGER ASPECT.RS_DLR_PREV_VALUE_TRIGGER
AFTER INSERT ON ASPECT.RS_KPI_DLR_DETAIL
FOR EACH ROW MODE DB2SQL
BEGIN ATOMIC
CALL ASPECT.RS_DEALER_PREV_DATA_POPULATE('81930');
END


Here RS_DEALER_PREV_DATA_POPULATE is my procedure that i want to trigger when i insert data into RS_KPI_DLR_DETAIL table.

So this is working fine, but this is working with each row insertion, and i have a excel file by which i will populate 10000 rows at a time.

So i want that this RS_DEALER_PREV_DATA_POPULATE procedure will run after whole data insertion.

I doesn't want FOR EACH ROW MODE in my trigger. how it is possible.:confused:

Can anyone help me.

Thanks in advance.

Viewing all articles
Browse latest Browse all 13329

Trending Articles