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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: TRIGGER QUESTION- URGENT

RE: TRIGGER QUESTION- URGENT

From: Jamadagni, Rajendra <rajendra.jamadagni_at_espn.com>
Date: Mon, 25 Sep 2000 13:13:19 -0400
Message-Id: <10630.117764@fatcity.com>


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



Rajendra Jamadagni MIS, ESPN Inc.
Rajendra dot Jamadagni at ESPN dot com
QOTD: Any clod can have facts, but having an opinion is an art ! Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

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

Original text of this message

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