Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> generic way to get primary key values inside trigger

generic way to get primary key values inside trigger

From: <akhashnobish_at_hotmail.com>
Date: 5 Apr 2007 11:23:10 -0700
Message-ID: <1175797390.036651.214510@w1g2000hsg.googlegroups.com>


I need to get the string representation of the value of the primary key (possibly multi-column) of the current row being inserted into a table from within a post-insert trigger.

The code should not have any hard-coded dependency on the schema of the current table.

The following is a schema-dependent implementation of this

--attach a trigger
--this is the non-generic version

create or replace trigger test_trigger
after insert or update on test
for each row
declare

        keystring varchar(100);
begin

end;
/

Any help is appreciated. Thanks Received on Thu Apr 05 2007 - 13:23:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US