difference between stored procedure and function?

Answers were Sorted based on User's Feedback



difference between stored procedure and function?..

Answer / m m naidu

A Procedure is a sub-program that performs a specific
action.

A Procedure can be called from PL/SQL Block or from another
Procedure also.


A function is very similar to a Procedure. Both take
arguments, which can be of different modes. Both are
different forms of PL/SQL blocks. Both can be stored in the
database.
A procedure call is a PL/SQL statement by itself, while a
Function call is called as part of an expression. And a
Function must return

Is This Answer Correct ?    7 Yes 0 No

difference between stored procedure and function?..

Answer / vsandhyana

Function can call anywhere in your select query but store
procedure cannot call from the select statement.

store procedure may or may not return values but function
should return value.

Thanks,
Vsandhyana

Is This Answer Correct ?    3 Yes 1 No

difference between stored procedure and function?..

Answer / arkchowdary

PL/SQL------------- It is a named PL/SQL Block.
------------- Which can take 1 or more values.
------------- It accepts Parameters.

Usage-------------- Reusability.
-------------- Precompatibility.


Whereas

Functions----------- It is a named PL/SQL Block.
----------- Which can take 1 or more values.
----------- It must a Returns value by using
return statement.

Is This Answer Correct ?    2 Yes 1 No

difference between stored procedure and function?..

Answer / ravi v

Function returns only 1 value, where as stored procedure
returns mutiple values.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Cognos Interview Questions

is it possible to display the column names in first page but not in remaining pages i.e if a report contains 10 pages column names should be displayed in 1st page but not remaining pages ( 2 to 10)

2 Answers  


what are determinants?

4 Answers   College School Exams Tests, IBM,


How can you create prompts in framework manager?

4 Answers   Tech Mahindra,


what is an associated query?

2 Answers  


3.User1 doveloped some report,user2 modify the same report and user 3 also updates in that same report? how to identify that report will be modified or not?

1 Answers   IBM, Thomson Reuters,






HOW TO DEVELOPE THE DRILLTHROUGH REPORTS?

4 Answers   IBM, TCS,


Can you define a datastore in cognos?

0 Answers  


What is IQD?What is contained in IQD?

3 Answers   ABC, IBM, Infosys,


faq's on cognos

0 Answers  


---------------What is meant by Scheduling?

2 Answers   IBM,


what r the names of the reports that u prepared???

9 Answers   Covansys, IBM, Wipro,


What is Cardinality

6 Answers   Cognizant, HCL,


Categories