Hello,
one way is to expand the table with a dummy field and pass the webid through the insertstatement.
INSERT INTO tab(id, text)
in Trigger :new.text and so on
after modification of table
INSERT INTO tab(id, text, webid)
in Trigger :new.webid
another way is to pass the webid into a package, that holds the webid
here is a package that holds your webid
----------------------------------------
-- Creation of package MYPACK
CREATE OR REPLACE
PACKAGE PETERMA.MYPACK
IS
PROCEDURE setWebID(p_nWebID IN NUMBER);
FUNCTION getWebID RETURN number;
m_nWebID NUMBER;
END;
/
-- Creation of package body MYPACK
CREATE OR REPLACE
PACKAGE BODY PETERMA.MYPACK
IS
PROCEDURE setWebID(p_nWebID IN NUMBER) IS
BEGIN
m_nWebID := p_nWebID;
END;
FUNCTION getWebID RETURN NUMBER IS
BEGIN
RETURN m_nWebID;
END;
END;
/
----------------------------------------
Before insert call
peterma.setWebID(webid);
in the trigger use
peterma.getWebID to get the stored webID
Hope that helps
Manfred Peter
Alligator Company Software GmbH
http://www.alligatorsql.com