What is a Procedure ?

Answer Posted / guest

Procedure is a stored database object and can be called
when is required. Procedure can have three parameters
IN,INOUT,OUT .IN is default parameter in a Procedure.

Ideally Procedure doesn't return a value but if required
same can be achieve throug OUT Parameter.

Syntex is :
CREATE OR REPLACE PROCEDURE <<Procedure Name>>
(<<PARAMETERLIST DATATYPE>>
IS
BEGIN
<<Code Here>>;
END <<Procedure Name>>;
In procedure arguments datatype size is not required.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different datatypes available in PL/SQL?

569


How to process query result in pl/sql?

566


Can sql function call stored procedure?

560


What is trigger in pl sql?

562


Explain the difference between drop and truncate commands in sql?

537






How to run pl sql program in mysql?

513


What are the ways on commenting in a pl/sql code?

513


What is trigger and types?

570


Can we change the table name in sql?

532


How many sql core licenses do I need?

509


What is sql used for?

647


What are stored procedures in mysql?

568


What is the difference between partition and index?

485


Why do we use procedures?

519


explain the difference between bool, tinyint and bit. : Sql dba

530