Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
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, 4814👍, 0💬
Popular Posts:
How To Use "IF" Statements on Multiple Conditions? - Oracle DBA FAQ - Understanding PL/SQL Language ...
How To Create an Array in PL/SQL? - Oracle DBA FAQ - Introduction to PL/SQL If you want create an ar...
What are some uses of Intranets & Extranets? An "intranet" is the generic term for a collect...
Can Two Forms Be Nested? - XHTML 1.0 Tutorials - Understanding Forms and Input Fields Can two forms ...
How To Define a Sub Function? - Oracle DBA FAQ - Creating Your Own PL/SQL Procedures and Functions A...