Re: triggering row deleted
Date: 1995/07/13
Message-ID: <3u3ip2$qg7_at_inet-nntp-gw-1.us.oracle.com>#1/1
josef_at_mars.softouch.bc.ca (Jozef Starosta) wrote:
Simply use and AFTER INSERT TRIGGER to issue a "delete from M". for example:
create trigger tm_ai
after insert on M
begin
delete from M;
end;
/
It works, I've done it before.
>Hi there,
>I have a message table M (seq#, msg_body).
>I have a trigger TM attached to this table
> TRIGGER TM after insert on M for each row.
>The trigger processes the msg_body.
>After processing I need to delete this row.
>Currently, the trigger TM generates an ALERT A(seq#) and
>a procedure P (that has to be already started) waits
>for that alert. Once P receives A(seq#), it deletes
>the row with seq# from M.
>Any idea about a more straitforward solution?
>Can I delete the triggering row directly
>from the trigger itself? How?
>Thanks.
>Jozef
Thomas Kyte
tkyte_at_us.oracle.com
Oracle Government
Received on Thu Jul 13 1995 - 00:00:00 CEST