Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Use "OUT" Parameter Properly
How To Use "OUT" Parameter Properly? - Oracle DBA FAQ - Creating Your Own PL/SQL Procedures and Functions
✍: 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
2007-04-21, 5339👍, 0💬
Popular Posts:
How To Retrieve the Count of Updated Rows? - Oracle DBA FAQ - Working with Database Objects in PL/SQ...
How To Delete All Rows a Table? - MySQL FAQs - Understanding SQL INSERT, UPDATE and DELETE Statement...
What are urlencode() and urldecode() functions in PHP? string urlencode(str) - Returns the URL encod...
How does one iterate through items and records in a specified block? One can use NEXT_FIELD to itera...
If XML does not have closing tag will it work? No, every tag in XML which is opened should have a cl...