what is difference between procedure and function

Answer Posted / aditi yadav

in addition to above answers -
1. Functions can be called inside procedure but procedure cannot be called inside functons.
2. Functions compiled every time when we call them whereas procedure compiles only once & can be called again and again without being compiled.
3. we can user functions in select statement but cannot use procedure.
4. Inside function we cannot user DML commands but inside procedures we can use DML commands.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the location of pre_defined_functions.

729


How do you pronounce sql?

640


What is java sql drivermanager?

637


What is the use of primary key?

633


What is composite primary key in sql?

607






How do you update a value in sql?

630


what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba

671


What is the use of sql trace?

569


Whis is not false in primary key?

1067


What is raw datatype in sql?

655


What is normalization? How many normalization forms are there?

649


What is multiple columns?

678


What is the difference between function and procedure in pl/sql?

636


What are the two characteristics of a primary key?

576


Can variables be used in sql statements?

644