Create a Stored Function in Oracle

Q

How To Create a Stored Function in Oracle?

✍: FYIcenter.com

A

A stored function is a function with a specified name and stored into the current database. If you want to create a stored function, you can use the CREATE FUNCTION statement. The example script below creates a stored procedure:

SQL> CREATE OR REPLACE FUNCTION GET_SITE
  2    RETURN VARCHAR2 AS
  3  BEGIN
  4    RETURN 'FYICentere.com';
  5  END;
  6  /
Function created.

 

Call a Stored Function in Oracle

Pass Parameters to Procedures in Oracle

Creating Oracle PL/SQL Procedures and Functions

⇑⇑ Oracle Database Tutorials

2018-11-11, 2368🔥, 0💬