masalachol
Technical User
I have multiple inserts and would like to know the total insert per job.....below with sql%rowcount I am only getting a count per insert not the total. Any suggestions?
CREATE OR REPLACE PACKAGE BODY dbcarrier_load_data_pkg IS
PROCEDURE invoice_load_pp
(p_orgid IN cc_invoice.org_id%TYPE,
p_vnbr IN cc_invoice.vendor_nbr%TYPE,
p_invnbr IN cc_invoice.invoice_nbr%TYPE,
p_invamt IN cc_invoice.invoice_amt%TYPE,
p_invdt IN cc_invoice.invoice_date%TYPE,
p_invpd IN cc_invoice.invoice_paid%TYPE)
IS
BEGIN
INSERT INTO cc_invoice
VALUES(p_orgid,
p_vnbr,
p_invnbr,
p_invamt,
p_invdt,
p_invpd);
DBMS_OUTPUT.PUT_LINE(SQL%ROWCOUNT);
END invoice_load_pp;
CREATE OR REPLACE PACKAGE BODY dbcarrier_load_data_pkg IS
PROCEDURE invoice_load_pp
(p_orgid IN cc_invoice.org_id%TYPE,
p_vnbr IN cc_invoice.vendor_nbr%TYPE,
p_invnbr IN cc_invoice.invoice_nbr%TYPE,
p_invamt IN cc_invoice.invoice_amt%TYPE,
p_invdt IN cc_invoice.invoice_date%TYPE,
p_invpd IN cc_invoice.invoice_paid%TYPE)
IS
BEGIN
INSERT INTO cc_invoice
VALUES(p_orgid,
p_vnbr,
p_invnbr,
p_invamt,
p_invdt,
p_invpd);
DBMS_OUTPUT.PUT_LINE(SQL%ROWCOUNT);
END invoice_load_pp;