Collections:
Use "OUT" Parameters in Oracle
How To Use "OUT" Parameter Properly in Oracle?
✍: FYIcenter.com
Here are the rules about OUT parameters:
Here is good example of a procedure with an OUT parameter:
SQL> CREATE OR REPLACE PROCEDURE WELCOME AS
2 SITE CHAR(40) := 'FYICenter.com';
3 MESSAGE CHAR(80);
4 PROCEDURE WELCOME_PRINT(S IN CHAR, M OUT CHAR) AS
5 BEGIN
6 M := 'Welcome to ' || S;
7 END;
8 BEGIN
9 WELCOME_PRINT('MySpace.com', MESSAGE);
10 DBMS_OUTPUT.PUT_LINE(MESSAGE);
11 WELCOME_PRINT(SITE, MESSAGE);
12 DBMS_OUTPUT.PUT_LINE(MESSAGE);
13 END;
14 /
SQL> EXECUTE WELCOME;
Welcome to MySpace.com
Welcome to FYICenter.com
⇒ Use "IN OUT" Parameters in Oracle
⇐ Use "IN" Parameters in Oracle
2018-10-19, 3483🔥, 0💬
Popular Posts:
How To Drop an Index in Oracle? If you don't need an existing index any more, you should delete it w...
How To Find Out What Privileges a User Currently Has in Oracle? Privileges granted to users are list...
What Privilege Is Needed for a User to Delete Rows from Tables in Another Schema in Oracle? For a us...
What Is a Parameter File in Oracle? A parameter file is a file that contains a list of initializatio...
How To Divide Query Output into Multiple Groups with the GROUP BY Clause in SQL Server? Sometimes, y...