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 |
What is Raise_application_error ?
How do I run a sql script?
What is correlated sub-query?
select * from emp where sal in(select max(sal) from emp) here there is any limit for in operator how many values accpect ?
oracle is compiler or interpretter,can any one tell me the answer?
Is postgresql a server?
what are the advantages a stored procedure? : Sql dba
How to fetch the rows by dynamicaly passing table name through cursor?
is it possible to pass an object or table to a procedure as an argument?
In table a 1lakh data is present,in table b 20 thousand data is present, to get unique data from table a and b which join to be considered. whether right outer join or left inner join.
Write a program that shows the usage of while loop to calculate the average of user entered numbers and entry of more numbers are stopped by entering number 0?
What is the difference between a procedure and a function?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)