Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Trigger to block insert
Hello,
I would like to write an insert trigger on a table that would block inserts into that table without raising an error. An example of what I'm trying to do follows:
CREATE OR REPLACE TRIGGER my_table_bi
BEFORE INSERT
ON my_table
FOR EACH ROW
BEGIN
IF <criteria not ok> THEN