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 Define an Anonymous Procedure with Variables
How To Define an Anonymous Procedure with Variables? - Oracle DBA FAQ - Creating Your Own PL/SQL Procedures and Functions
✍: FYIcenter.com
Anonymous procedure is a procedure without any name. If you have some variables to declare, you can define an anonymous procedure by using the DECLARE keyword in SQL*Plus as shown in the following tutorial script:
SQL> set serveroutput on; SQL> declare 2 site char(80) := 'FYICenter'; 3 begin 4 dbms_output.put_line('Welcome to ' || site); 5 end; 6 / Welcome to FYICenter PL/SQL procedure successfully completed. SQL> / Welcome to FYICenter PL/SQL procedure successfully completed.
"/" runs the anonymous block, which print the "Welcome to FYICenter" message.
2007-04-26, 4541👍, 0💬
Popular Posts:
How To Define a Data Source Name (DSN) in ODBC Manager? - Oracle DBA FAQ - ODBC Drivers, DSN Configu...
How To Return Top 5 Rows? - MySQL FAQs - SQL SELECT Statements with JOIN and Subqueries If you want ...
How To Create an Add-to-My-Yahoo Button on Your Website? - RSS FAQs - Adding Your Feeds to RSS News ...
What's difference between HashTable and ArrayList ? You can access array using INDEX value of array,...
What is difference between SITP and UTP in testing ? UTP (Unit Test Plan) are done at smallest unit ...