difference between procedures and function?

Answer Posted / nageswararao.k

procedure and functions both are subprogrames.but trigger
is not a subprogram
procedure:--a procedure is created to perform one or more
DML operations.if we create procedure,then we can call the
procedure from any frontend application and any pl/sql
block.
procedures may or may not return a value .
we can not call procedure from select statement.
in procedure the out perameter return a value.


function:-the functions are created to do calculatiions and
computations.
function access some input and perform a task and must
return a value.the value return by return statement.
we can call the function from select statement.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does oracle handle read consistency?

864


Iam learning oracle developer 2000.. can anyone give me then tutorials sites or PDF related to developer 2000 please send me the details @ mak2786@gmail.com thanks Arun

1855


What is the difference between pre-select and pre-query?

824


How will you identify oracle database software release?

728


What is an oracle cursor variable?

787


How to add a new column to an existing table with a default value?

760


When do you get a .pll extension in oracle? Explain its importance

761


What are group functions in oracle?

756


How to create a new table by selecting rows from another table?

810


What is the meaning of recursive hints in oracle?

732


src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));

1408


Explain about the analyze command in oracle?

772


How to check database size in Oracle?

832


How to drop a stored procedure in oracle?

761


What happens to indexes if you drop a table?

900