In Oracle, you can create your own procedures as follows.
The syntax for a procedure is:
CREATE [OR REPLACE] PROCEDURE procedure_name
[ (parameter [,parameter]) ]
IS
[declaration_section]
BEGIN
executable_section
[EXCEPTION
exception_section]
END [procedure_name];
When you create a procedure or function, you may define parameters. There are three types of parameters that can be declared:
IN - The parameter can be referenced by the procedure or function. The value of the parameter can not be overwritten by the procedure or function.
OUT - The parameter can not be referenced by the procedure or function, but the value of the parameter can be overwritten by the procedure or function.
IN OUT - The parameter can be referenced by the procedure or function and the value of the parameter can be overwritten by the procedure or function.
http://www.devshed.com/c/a/Oracle/Oracle-Stored-Procedures/2/
http://infolab.stanford.edu/~ullman/fcdb/oracle/or-plsql.html#procedures == Mallesh
Malar, if this helps please login to Mark As Answer. |
Reply | Alert Moderator