Collections:
Use "IN" Parameters in Oracle
How To Use "IN" Parameter Properly in Oracle?
✍: FYIcenter.com
Here are the rules about IN parameters:
Here is good example of a procedure with an IN parameter:
SQL> CREATE OR REPLACE PROCEDURE WELCOME AS
2 SITE CHAR(80) := 'FYICenter.com';
3 PROCEDURE WELCOME_PRINT(S IN CHAR) AS
4 BEGIN
5 DBMS_OUTPUT.PUT_LINE('Welcome to ' || S);
6 -- S := 'Google.com'; -- Not allowed
7 END;
8 BEGIN
9 WELCOME_PRINT('MySpace.com');
10 WELCOME_PRINT(SITE);
11 END;
12 /
SQL> EXECUTE WELCOME;
Welcome to MySpace.com
Welcome to FYICenter.com
⇒ Use "OUT" Parameters in Oracle
⇐ Parameter Modes Supported by PL/SQL in Oracle
2018-10-19, 2479🔥, 0💬
Popular Posts:
What Are Out-of-Range Errors with DATETIME values in SQL Server Transact-SQL? When you enter DATETIM...
How To Revise and Re-Run the Last SQL Command in Oracle? If executed a long SQL statement, found a m...
How to continue to the next iteration of a WHILE loop in SQL Server Transact-SQL? How to use CONTINU...
How To Insert New Line Characters into Strings in SQL Server Transact-SQL? If you want to break a st...
How to execute statements in loops in SQL Server Transact-SQL? How to use WHILE ... loops? You can u...