Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Concatenating and copying columns data
I have written the following trigger, I need to check if PROJ_ID
column does not exists in table then skip the logic. How can I
accomplish that? Oracle is throwing error at :new.PROJ_ID statement,
if I remove PROJ_ID column from the table. Is there any other way to
access PROJ_ID value from the new row?. Any help in this regard will
be appreciated.
CREATE OR REPLACE TRIGGER "USMANK_PW4"."PROCESS_AFTER" BEFORE INSERT ON "USMANK_PW4"."PROCESS" FOR EACH ROW DECLARE
PROC_KEYTAG VARCHAR (10); PROC_PROJID VARCHAR (100); PROC_ID VARCHAR (100);
while startpos < len loop startpos := startpos + 1; onechar := substr(:new.PROJ_ID,startpos,1); if onechar >= '0' and onechar <= '9' then asciistr := asciistr || onechar; else asciistr := asciistr || ASCII(onechar); end if; end loop;
![]() |
![]() |