The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
how to call function in execute sql
sgnarkhede2016
Member Posts: 152 Contributor II
in Help
how to call function in execute sql
0
Answers
CREATE OR REPLACE FUNCTION 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.