PL-SQL Procedure

Advertisements

Looping Statement in PLSQL Function in PLSQL

PL-SQL Procedure

A pl-sql Procedure does not return any value. Procedure in pl-sql have two sections;

  • Declaration of the procedure: Declaration of procedure always start with a keyword create ends with last variable parameters.
  • Body of the procedure: Body of procedure starts with a keyword called is or as and ends with end statement.

Syntax

create or replace procedure proc_name [list of parameters] 
is    
   Declaration section 
begin    
   Execution section 
Exception    
  Exception section 
end; 

Example of procedure

create or replace procedure p1(a in number, b out number, c out number, d out number)
is
begin;
select ename, sal, deptno, into b, c, d from emp
where empno=a;
end;

Looping Statement in PLSQL Function in PLSQL

Google Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements