I change trigger and procedure from SQL SERVER to ORAC but I can do it.
Ex:
CREATE PROCEDURE quest2001.proc_setstatus
is
mid number(30);
param varchar2(4);
taction varchar2(10) := '';
status varchar2(30) :='Nused';
flag number(10);
Begin
IF param= 'BNOT' then
SELECT q.IDTBNOT into flag FROM quest2001.QUEST_TBNOTE q WHERE q.IDTBNOT=mid;
IF flag > 0 then
status:='Used';
UPDATE quest2001.TYPE_BLOC_NOTE t SET t.STATUTTBNOT =status WHERE t.IDTBNOT=mid;
END IF;
End if;
end;
/* end of procedure
this Procedure I create in ORAC
*/
CREATE TRIGGER quest2001.STATUTEVAFONCTi ON quest2001.EVALUATIONDECLARE
FOR INSERT,UPDATE
AS
DECLARE @id varchar(30)
(SELECT id=old.IDFONCT FROM deleted old)
EXECUTE quest2001.PROC_SETSTATUS id,'EIDX;'
this trigger created in SQL SERVER I can not change ORAC.
Trungx
Ex:
CREATE PROCEDURE quest2001.proc_setstatus
is
mid number(30);
param varchar2(4);
taction varchar2(10) := '';
status varchar2(30) :='Nused';
flag number(10);
Begin
IF param= 'BNOT' then
SELECT q.IDTBNOT into flag FROM quest2001.QUEST_TBNOTE q WHERE q.IDTBNOT=mid;
IF flag > 0 then
status:='Used';
UPDATE quest2001.TYPE_BLOC_NOTE t SET t.STATUTTBNOT =status WHERE t.IDTBNOT=mid;
END IF;
End if;
end;
/* end of procedure
this Procedure I create in ORAC
*/
CREATE TRIGGER quest2001.STATUTEVAFONCTi ON quest2001.EVALUATIONDECLARE
FOR INSERT,UPDATE
AS
DECLARE @id varchar(30)
(SELECT id=old.IDFONCT FROM deleted old)
EXECUTE quest2001.PROC_SETSTATUS id,'EIDX;'
this trigger created in SQL SERVER I can not change ORAC.
Trungx