Comments in line

On 01/26/2004 07:24:26 AM, [EMAIL PROTECTED] wrote:
Hallo,

I would like to make an insert statement into a table in atrigger, Iam
trying to do:


Insert into system_change values(system_change_id.nextval) but it
gives  me an error message which tells me that I havent declared any
sequence. How can I fix this ?


create or replace trigger oracle-l on owner.table after mess-up for each row as sci_next number; begin select system_change_id.nextva into sci_next from dual; system_change values(sci_next); raise NO_DATA_FOUND; exit; /

You'll have to re-arrange the trigger. Oracle doesn't support triggers triggered my messing things up before version 10g and it is rather unusual to raise an exception unconditionally in a trigger. Your question, however, was answered.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Mladen Gogala
INET: [EMAIL PROTECTED]


Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to