how to call function in execute sql
sgnarkhede2016
MemberPosts:152Contributor II
inHelp
how to call function in execute sql
0
0 Comments | 0 Discussions | 0 Members | 0 Online |
Answers
return_创建或替换功能hello(p_name VARCHAR2)
RETURN VARCHAR2 AS
m_return VARCHAR2(1000) := NULL;
BEGIN
m_return := 'HELLO ' || p_name || ' !!';
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN NULL;
END;
So it will create your function but in order to use it you'll have to use the Read database operator and then call your created function. This operator has the output option to show the results so you need to combine the execute and read operators.