Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Oracle Triggers variable
Hello, I'm writing this post to ask you about If can I get a variable
of trigger to my code in asp.net 2.0?.
I have this code in my trigger:
create or replace TRIGGER CORRELATIVO_EXPEDIENTE BEFORE INSERT ON EXP REFERENCING NEW AS New FOR EACH ROW DECLARE contador NUMBER; BEGIN contador:=0; SELECT NVL(MAX(id_exp),0) +1 INTO contador FROM EXP; :NEW.id_exp:=contador; END;
I want to get "contador".
Thanks for all. Received on Tue May 08 2007 - 02:53:10 CDT
![]() |
![]() |