Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Can anyone help me out of this question.
Can you find anything wrong w/ this?
create function INSERT_ARTICLE(CreationDateIn IN VARCHAR2, AuthorIn IN
VARCHAR2)
RETURN NUMBER
IS
sArticleSequence.RowID NUMBER;
BEGIN
insert into sArticles
(ArticleId, CreationDate, Author) values (sArticleSequence.NextVal, CreationDateIn, AuthorIn);RETURN (sArticleSequence.RowID);
(sArticleSequence.NextVal, CreationDateIn, AuthorIn); * ORA-06550: line 5, column 45:
ORA-06550: line 6, column 1: PLS-00372: In a procedure, RETURN statement cannot contain an expression ORA-06550: line 6, column 1:
Thanks for your help.
Sasha.
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Mon Oct 16 2000 - 17:24:30 CDT
![]() |
![]() |