trigger problem [message #254672] |
Fri, 27 July 2007 07:50 |
beesman
Messages: 2 Registered: July 2007
|
Junior Member |
|
|
Hi all,
First time here, so please be gentle
I'm trying to execute the following SQL script (Oracle 10g on Solaris):
CREATE OR REPLACE TRIGGER pk_histories_trigger
BEFORE INSERT
ON histories
FOR EACH ROW
BEGIN
SELECT pk_histories.NEXTVAL
INTO :NEW.ID
FROM DUAL;
END;
However, this gives me the following error message:
[Error Code: 17041, SQL State: null] Missing IN or OUT parameter at index:: 1
I really don't know where to start debugging - any help would be much appreciated.
[Updated on: Fri, 27 July 2007 08:03] by Moderator Report message to a moderator
|
|
|
|
|