Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using an inline function within a view returns "missing keyword" error

User_HMTR3Apr 12 2016 — edited Apr 12 2016

Hi everybody,

Can you help me understand what I am doing wrong please ? I want to use an inline function within a view but I get an error.

Here is a code example :

WITH FUNCTION FormatString (operand VARCHAR2) RETURN VARCHAR2

IS

BEGIN

  RETURN INITCAP(operand) ;

END ;

SELECT FormatString('example') FROM DUAL

The above code returns the following error : 00905. 00000 -  "missing keyword"

Maybe I do something wrong.

Thank you for your help.

Best regards.

MS

This post has been answered by Vysakh Suresh - 3035408 on Apr 12 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 10 2016
Added on Apr 12 2016
13 comments
3,197 views