what diffrence between function and procedure?

Answer Posted / raj dhar

Function :- Function always return one value.
Procedure :- Procedure may or may not be return value.

Function :- Function always required " RETURN " key word.
Procedure :- Procedure doesn't require " RETURN" key word.

Function :- Function we use parameter IN.
Procedure :- Procedure we use parameter IN,OUT,INOUT.

etc.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are named parameters?

618


How do we get field detail of a table?

629


How to loop through data rows in the implicit cursor?

546


What is a cursor in oracle?

652


when we are importing items in inventory, showing errors, Oracle support suggested us for running scripts & also suggested if we run scripts, iprocurement applicaation if is there it will show shared and if we go in future for iprocurement, it wont work. So kinldy suggest any functional solution.

1477






State the various uses of dbcc command?

551


Explain oracle’s server parameter file.

572


how to use select statement as formal parameter in procedure specification?(someone said that using string) ex:-procedure(a in number,select ename from emp ) i am asking syntax like this?

1533


State some uses of redo log files?

568


How to use an explicit cursor without open statements?

616


What are the different types of database objects?

532


Can group functions be used in the order by clause in oracle?

582


How to define an oracle cursor variable?

571


Can we insert data in view oracle?

543


What happens if the imported table already exists?

549