-
Trigger for generating Sequence
Hi, the following trigger is generating Compilation errors :
CREATE TRIGGER test_auto_id BEFORE INSERT ON test for each row BEGIN SELECT test_id.nextval INTO :new.ID from dual ; END
I think it has something to do with my usage of ":new" - Any ideas ?
Thanks.
-
perhaps you could share the error message with us
-
No Description. Just a message : "Warning: Trigger created with compilation errors."
-
-
Thanks Slimdave. Was just missing a ';' at the end - so silly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|