les08 proc cre tellme1





Creating Procedures










The interactions in this eCourse require Javascript to be enabled.



 

Creating Procedures


previous|next





CREATE PROCEDURE Statement
You create new procedures with the CREATE PROCEDURE statement, which may declare a list
of parameters and must define the actions to be performed by the standard PL/SQL block. The
CREATE clause enables you to create stand-alone procedures that are stored in an Oracle
database.

PL/SQL blocks start with BEGIN, optionally preceded by the declaration of local variables. PL/SQL blocks end with either END or END procedure_name.
The REPLACE option indicates that if the procedure exists, it is dropped and replaced with the new version created by the statement.

Syntax



CREATE [OR REPLACE] PROCEDURE procedure_name
[(parameter1 [mode] datatype1,
parameter2 [mode] datatype2, ...)]
IS|AS
[local_variable_declarations; …]
BEGIN
-- actions;
-- SQL statements
-- PL/SQL statements
END [procedure_name];



 
 
 
 
 








Wyszukiwarka

Podobne podstrony:
les08 proc cre tellme2
les08 func cre tellme1
les08 proc cre showme
les08 func cre tellme2
les08 proc cre whylearnit
les08 man triggers tellme
les08 pack spec tellme
les08 audit trigger1 tellme
les08 func cre showme
les08 pack body tellme
les08 cre block1 tellme
les08 cre block2 tellme
les08 cre anonymous1 tellme
les08 cre triggers tellme
les08 cre dmltriggers1 tellme
les08 pack tellme1
les08 cre anonymous2 showme
les08 except tellme1
les08 cre dmltriggers2 showme

więcej podobnych podstron