What is difference between Procedures and Functions ?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Answer / sandeep sahoo
Prcocedure Will do Action whereas Function Will do Calculation
Is This Answer Correct ? | 0 Yes | 0 No |
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 |
How do I add a database to sql?
Authentication mechanisms in Sql Server ?
Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?
what is variable in package specification
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.
Is join same as left join?
Show code of a cursor for loop.
What are the types of SQL Statement?
What are the uses of sysdate and user keywords?
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?
how to insert the data through views? The view is depending upon more than two tables? how to update materalized views?
How would you hide a table in sql. ie the table can be only visible to its maker?