Hi khushi2003,
From the Oracle Database Concepts document:
=======================
A procedure or function is a schema object that consists of a set of SQL statements and other PL/SQL constructs, grouped together, stored in the database, and run as a unit to solve a specific problem or perform a set of related tasks. Procedures and functions permit the caller to provide parameters that can be input only, output only, or input and output values. Procedures and functions let you combine the ease and flexibility of SQL with the procedural functionality of a structured
programming language. Procedures and functions are identical except that functions always return a single value to the caller, while procedures do not. For simplicity, procedure as used in the remainder of this chapter means procedure or function. You can run a procedure or function interactively by:
* Using an Oracle tool, such as SQL*Plus
* Calling it explicitly in the code of a database application, such as an Oracle Forms or precompiler application
* Calling it explicitly in the code of another procedure or trigger
=======================
If you intend to use SQL*Plus, there is no need to wrap your insert in procedural body. Which parameter do you wish to pass?
Main Topics
Browse All Topics





by: khushi2003Posted on 2004-04-01 at 03:29:56ID: 10731193
I would like to turn my statement into procedure or function!