June 27, 2005 at 7:03 am
In Postgres when I try to create a trigger this way
CREATE TRIGGER ins_all_environment_master AFTER INSERT OR UPDATE
on alpha.all_environment_master
DECLARE
v_ls_so VARCHAR(10);
Why do I get the following error
ERROR: syntax error at or near "DECLARE" at character 115.
Can anyone help?
Thanks
Schalk
June 27, 2005 at 7:08 am
I never used POSTGRES, but in sql server you must have the "as" keyword in there :
FOR INSERT, UPDATE, DELETE
AS
Declare....
June 27, 2005 at 7:10 am
Thanks, but that doesn't work.
SOS
June 27, 2005 at 7:25 am
Can't find anything... but then again I don't know where to look.
June 27, 2005 at 7:37 am
June 27, 2005 at 8:20 am
Thanks, will have a look
If you have any information before I subscribe I would appreciate!
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply