plsql Functions Calling Functions

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

There are a few ways to use functions.

Calling a function with an assignment statement

DECLARE
    x NUMBER := functionName(); --functions can be called in declaration section
BEGIN
    x := functionName();
END;

Calling a function in IF statement

IF functionName() = 100 THEN
    Null;
END IF;

Calling a function in a SELECT statement

SELECT functionName() FROM DUAL;


Got any plsql Question?