Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Oracle function or procedure
Hello!
I tried to make a function insert a new record in one of my
tables and return the NEXTVAL value of the sequence on
the index of the table.
The server responded "Function does not guarantee not to
update the database".
Does this mean I have to use a procedure to insert new
records? I tried with a procedure:
CREATE OR REPLACE PROCEDURE ADD_JOB(
TYPE IN VARCHAR2, DISK IN VARCHAR2, NAME IN VARCHAR2, DATE IN VARCHAR2,
But the server responds
"Procedure created with compilation errors", and I can't see
where I do my mistakes... How can I return the true
NEXTVAL value if I must use a procedure to insert records?
Returning CURRVAL is not enough...
I'd be greatful if someone could help me
Regards,
Svein
Received on Fri May 14 1999 - 01:55:46 CDT
![]() |
![]() |