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 statement in sqlplus

create trigger statement in sqlplus

From: Axel Hallez <Axel.Hallez_at_rug.ac.be>
Date: Wed, 10 Oct 2001 10:07:32 +0200
Message-ID: <9q0vl9$bm8$1@inf6serv.rug.ac.be>


Hello all,

I am writing a script to generate a small database which will be used in SQL exercises.
This script includes some triggers like this: CREATE TRIGGER "TID_ASSIGN" BEFORE INSERT ON "T_TIJDSCHRIFTEN"   FOR EACH ROW
  BEGIN
    SELECT TID_SEQ.NEXTVAL INTO :NEW.TID FROM DUAL;   END; The problem is that sqlplus does not recognise the end of this statement, so it remains waiting for the rest of the statement or it reads the rest of the script as a part of this statement.

Does anybody know a workaround for this problem?

Thanks in advance,

Axel Hallez

Computer Science Laboratory
University of Ghent, Belgium Received on Wed Oct 10 2001 - 03:07:32 CDT

Original text of this message

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