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 |
Can I call a procedure inside a function?
Is it possible to include an insert statement on the same table to which the trigger is assigned?
Mention what are different methods to trace the pl/sql code?
What is the difference between jpql and sql?
please explain database architecture..
What is the usage of nvl function?
How do I write a cron which will run a sql query and mail the results to agroup?
What is the difference between functions, procedures, and packages in pl/sql?
Is keyword pl sql?
What is the difference between RDBMS and DBMS?
20 Answers Practical Viva Questions, Sapient, Stag Computers,
how to sort records in sql?
What is union and union all keyword in sql?