Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: TRIGGER QUESTION- URGENT
You need to use a local variable ....
CREATE OR REPLACE TRIGGER "DBA_LOG_USER"."TRIG_DBAS_DBA_ID"
AFTER INSERT ON "DBA_LOG_USER"."DBAS"
declare
nval number := 0;
BEGIN
select SEQ_DBAS_DBA_ID.NEXTVAL
into nval from dual;
--
UPDATE DBAS
SET DBA_ID = nval;
END;
HTH
Raj
This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify ESPN at (860) 766-2000 and delete this e-mail message from your computer, Thank you. Received on Mon Sep 25 2000 - 12:13:19 CDT
![]() |
![]() |