What is stored procedure. How do you create stored procedure

Showing Answers 1 - 10 of 10 Answers

Roby

  • May 23rd, 2005
 

Stored Procedure is a stored program in the datbase

  Was this answer useful?  Yes

SaiSrinivas

  • May 30th, 2005
 

Stored Procedure is a stored program in database, PL/SQL program is a Stored Procedure. Stored Procedures can be called from java by CallableStatement

  Was this answer useful?  Yes

moshe dayan

  • Jun 2nd, 2005
 

A stored procedure is a group of SQL statements that form a logical unit and perform a particular task. Stored procedures are used to encapsulate a set of operations or queries to execute on a database server. For example, operations on an employee database (hire, fire, promote, lookup) could be coded as stored procedures executed by application code. Stored procedures can be compiled and executed with different parameters and results, and they may have any combination of input, output, and input/output parameters.

  Was this answer useful?  Yes

Arundathi

  • Jun 30th, 2005
 

A precompiled collection of SQL statements stored under a name and processed as a unit.  
Stored procedures can:  
1.Accept input parameters and return multiple values in the form of output parameters to the calling procedure or batch. 
2.Contain programming statements that perform operations in the database, including calling other procedures.  
3.Return a status value to a calling procedure or batch to indicate success or failure (and the reason for failure).  

  Was this answer useful?  Yes

Subramanyam

  • Aug 1st, 2005
 

A stored procedure is a set of procedural sql querry which when executed under sql environment will perform those operations which are specified in those sql querry form

  Was this answer useful?  Yes

v.vamshi krishna

  • Aug 24th, 2005
 

send the code for a sample jdbc program

  Was this answer useful?  Yes

tulasi

  • Sep 7th, 2005
 

stored procedure is nothing but a colletion of sql statements with conditional structures to perform one or more tasks combinedly.which is compiled and can call other stored procedures..

  Was this answer useful?  Yes

guptach

  • Sep 22nd, 2005
 

A stored procedure or function is an object 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. A procedure is explicitly run by a user, application, or trigger.

Procedures and functions are identical except that functions always return a single value to the caller, while procedures do not.

  Was this answer useful?  Yes

Hameed

  • Oct 12th, 2005
 

Stored Procedure is an object design with business logic and stored in the database .Since it stays in the database ,the execution of the business logic is more faster...

  Was this answer useful?  Yes

Stored procedure contains set of sQL Statements thar are executed in the database by the sql stament processor.

code:

DECLARE
 NUM1 NUMBER:=10;
 NUM2 NUMBER:=20;
BEGIN
    DBMS_OUTPUT.PUT_LINE('sum:'||To_Char(NUM1+NUM2,'999.99'));
END;

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions