Skip to Main Content
Forums
Search
Required
Search Scope
All Domains
This Domain
Required
Install App
Sign In
Go back
Database Software
New Post
allow named parameters in functions calls within SQL
TPD-Opitz
Apr 3 2015 — edited Jan 11 2016
CREATE
OR
REPLACE
FUNCTION
my_function
(
p_param number
)
RETURN
varchar2
IS
begin
RETURN
'value_'
||p_param; end;
FUNCTION
created.
SELECT
my_function
(
1
)
FROM
dual;
MY_FUNCTION
(
1
)
--------------------------------------------------------------------------------
value_1
1
row selected.
-- I want this to work
SELECT
my_function
(
p_param=>
2
)
FROM
dual;
SELECT
my_function
(
p_param=>
2
)
FROM
dual
*
Error at line
1
ORA
-00907
: missing
RIGHT
parenthesis
bye
TPD
Comments
Please sign in to comment
Post Details
Added on Apr 3 2015
#active
,
#database-ideas
,
#database-ideas-ideas
3 comments
483 views
---
---