Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Create Trigger with delete
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
![]() |
![]() |