Can you call procedure in functions

Questions by chesy

Showing Answers 1 - 9 of 9 Answers

Yes , we can. Here is simple example.

CREATE OR REPLACE PROCEDURE TEST_PROC(V_NUM OUT NUMBER) AS
BEGIN
V_NUM := 10;
END;
/


CREATE OR REPLACE FUNCTION TEST_FUNC RETURN NUMBER  AS
V_NUM NUMBER;
BEGIN
TEST_PROC(V_NUM);
RETURN V_NUM;
END;
/


SELECT TEST_FUNC() FROM DUAL;

OUTPUT
10

raman

  • Jan 3rd, 2017
 

good example this program if you write select query statement

  Was this answer useful?  Yes

sudha

  • Aug 4th, 2017
 

No

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions