Thread View: borland.public.interbase.sql
4 messages
4 total messages
Started by Alessandro Martim
Thu, 28 Nov 2002 09:05
trigger error
Author: Alessandro Martim
Date: Thu, 28 Nov 2002 09:05
Date: Thu, 28 Nov 2002 09:05
22 lines
1373 bytes
1373 bytes
hi all
I've trying to create the trigger below w/o success... I am using ib6 and
ibconsole.
thanks in advance
error: Dynamic SQL Error
SQL error code = -104
Token unknown - line 3, char 25
AS
----------------
SET TERM !!;
CREATE TRIGGER TR_TROCA_DEPTO FOR CARGO BEFORE UPDATE
AS
DECLARE VARIABLE N_CARG AS INTEGER;
BEGIN
IF (OLD.DEPTO <> NEW.DEPTO) THEN
***
END
Re: trigger error
Author: Rafael Vacas
Date: Thu, 28 Nov 2002 09:28
Date: Thu, 28 Nov 2002 09:28
26 lines
1394 bytes
1394 bytes
> I've trying to create the trigger below w/o success... I am using ib6 and > ibconsole. > > thanks in advance > > error: Dynamic SQL Error > SQL error code = -104 > Token unknown - line 3, char 25 > AS > > ---------------- > SET TERM !!; > CREATE TRIGGER TR_TROCA_DEPTO FOR CARGO ACTIVE BEFORE UPDATE > AS > DECLARE VARIABLE N_CARG AS INTEGER; > BEGIN > IF (OLD.DEPTO <> NEW.DEPTO) THEN > > *** END !! > > Rafael A CoruοΏ½a
Re: trigger error
Author: Hilmar Brodner
Date: Thu, 28 Nov 2002 15:35
Date: Thu, 28 Nov 2002 15:35
3 lines
1109 bytes
1109 bytes
> > DECLARE VARIABLE N_CARG AS INTEGER; DECLARE VARIABLE N_CARG INTEGER;
Re: trigger error
Author: Bill Todd
Date: Thu, 28 Nov 2002 15:51
Date: Thu, 28 Nov 2002 15:51
33 lines
1629 bytes
1629 bytes
Remove the word AS from the DECLARE VARIABLE statement. On Thu, 28 Nov 2002 07:05:36 -0200, "Alessandro Martim" <alessandro.marti@uol.com.br> wrote: >hi all > >I've trying to create the trigger below w/o success... I am using ib6 and >ibconsole. > >thanks in advance > >error: Dynamic SQL Error >SQL error code = -104 >Token unknown - line 3, char 25 >AS > >---------------- >SET TERM !!; >CREATE TRIGGER TR_TROCA_DEPTO FOR CARGO BEFORE UPDATE >AS > DECLARE VARIABLE N_CARG AS INTEGER; >BEGIN > IF (OLD.DEPTO <> NEW.DEPTO) THEN > > *** >END > -- Bill (TeamB) (TeamB cannot respond to questions received via email)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads