execute procedure in oracle code example

Example 1: syntax of procedure in oracle

CREATE OR REPLACE PROCEDURE procedure_name
    [ (parameter [,parameter]) ]

IS
    [declaration_section]

BEGIN
    executable_section

[EXCEPTION
    exception_section]

END [procedure_name];

EXECUTE procedure_name(?,?,?);

Example 2: procedures in pl sql

CREATE [OR REPLACE] PROCEDURE procedure_name 
[(parameter_name [IN | OUT | IN OUT] type [, ...])] 
{IS | AS} 
BEGIN 
  < procedure_body > 
END procedure_name;

Example 3: procedure PL/SQL

CREATE PROCEDURE nome_procedura [(parametri)] IS
	Definizioni;
BEGIN
	Corpo procedura;
END;

Tags:

Misc Example