Hi folks!
I am relatively new to SQL and Interbase 6 and need a bit of help.
I have the following code which works insofar as
(upon using the Interactive SQL in IBConsole of Interbase 6)
I can succesfully run the routine below.
It has the required result in that it won't allow me to enter
data into Tables PSWRD or PDCTS unless I already have something
in P_NO OF Table SAPARENT.
But I don't understand the significance of the following exception
which arises after running the Create routine.
Can someone throw some light on this please?
"Invalid request BLR at offset 21
generator PK_GEN_SAPARENT is not defined
Statement: CREATE TRIGGER PK_GEN_SAPARENT FOR SAPARENT
ACTIVE BEFORE INSERT POSITION 0
as
begin
new.P_NO = gen_id(PK_GEN_SAPARENT, 1);
end"
Thanks in advance.
TERRY
I am relatively new to SQL and Interbase 6 and need a bit of help.
I have the following code which works insofar as
(upon using the Interactive SQL in IBConsole of Interbase 6)
I can succesfully run the routine below.
It has the required result in that it won't allow me to enter
data into Tables PSWRD or PDCTS unless I already have something
in P_NO OF Table SAPARENT.
But I don't understand the significance of the following exception
which arises after running the Create routine.
Can someone throw some light on this please?
"Invalid request BLR at offset 21
generator PK_GEN_SAPARENT is not defined
Statement: CREATE TRIGGER PK_GEN_SAPARENT FOR SAPARENT
ACTIVE BEFORE INSERT POSITION 0
as
begin
new.P_NO = gen_id(PK_GEN_SAPARENT, 1);
end"
Thanks in advance.
TERRY