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

Home -> Community -> Usenet -> c.d.o.server -> Create Trigger with delete

Create Trigger with delete

From: <battail_at_my-deja.com>
Date: Wed, 19 Jan 2000 08:47:01 GMT
Message-ID: <863tm2$n5q$1@nnrp1.deja.com>


Hello,

My problem is:
Before inserting new rows in a table TEST (for example), I want to delete all the rows inserted before in this table, but only the rows which have the same value in the column DATE_CALE. I need to use a Trigger to do this.

The SQL Code seems like:
CREATE TRIGGER DELETE_TEST
BEFORE INSERT ON TEST
BEGIN
DELETE FROM TEST WHERE DATE_CALE=:new.DATE_CALE; END; But it doesn't work...

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Wed Jan 19 2000 - 02:47:01 CST

Original text of this message

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