What is difference between Procedures and Functions ?

Answers were Sorted based on User's Feedback



What is difference between Procedures and Functions ?..

Answer / roopesh kumar

(1) Procedure may or may not return value but function
should.

(2) We can't call a procedure inside a sql stmt but
function can.

Is This Answer Correct ?    5 Yes 0 No

What is difference between Procedures and Functions ?..

Answer / guest

Hi,

Basic Difference is Function must return a value and
Procedure can or cannot return a value using out parameter.



Thanks!

Is This Answer Correct ?    4 Yes 0 No

What is difference between Procedures and Functions ?..

Answer / manojbatra071

a procedure can return none,one or more than one value but a
function can return one and only one value everytime

Is This Answer Correct ?    2 Yes 0 No

What is difference between Procedures and Functions ?..

Answer / shasi

Hi,

The main think is function canbe used in sql select
statement but procedure wer can't use.procedure redurn more
then value(max:1024)funcion must return 1 value

Is This Answer Correct ?    1 Yes 0 No

What is difference between Procedures and Functions ?..

Answer / sandeep sahoo

Prcocedure Will do Action whereas Function Will do Calculation

Is This Answer Correct ?    0 Yes 0 No

What is difference between Procedures and Functions ?..

Answer / devi

1.procedure does not return any value whree as functions
return values
2.a procedure can be called independently where as a
function is called inside a procedure

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More SQL PLSQL Interview Questions

How do I add a database to sql?

0 Answers  


Authentication mechanisms in Sql Server ?

1 Answers   BirlaSoft,


Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?

0 Answers  


what is variable in package specification

3 Answers  


Source is Sales Table: Sno Prod Sales Sales_Amount 1 A 10 2000 2 A 20 1000 3 C 10 3000 4 D 30 4000 5 A 20 1000 Target : Sales_Count T_Sales_Amt Sales_Count(A) T_Sales_Amt(A) 90 11000 50 4000 In single query, pls tell me.

5 Answers   CGI,






Is join same as left join?

0 Answers  


Show code of a cursor for loop.

0 Answers  


What are the types of SQL Statement?

3 Answers  


What are the uses of sysdate and user keywords?

0 Answers  


How can we Get the Updated Rows? ie, There is 100s of Rows i updated the Rows who have salary 5000. then i want to select the Updated Rows. How can we achieve it?

4 Answers   Fidelity, KCP,


how to insert the data through views? The view is depending upon more than two tables? how to update materalized views?

3 Answers   3i Infotech,


How would you hide a table in sql. ie the table can be only visible to its maker?

3 Answers  


Categories