what diffrence between function and procedure?

Answers were Sorted based on User's Feedback



what diffrence between function and procedure?..

Answer / deepu

functions and procedures are both pl/sql programs.
procedures performs a specific task,it takes parameters and
performs the actions.
functions are same as procedures except they wil return a
value.

Is This Answer Correct ?    1 Yes 0 No

what diffrence between function and procedure?..

Answer / manu sankar

Functions can be called inside a sql but procedures cannot

Is This Answer Correct ?    1 Yes 0 No

what diffrence between function and procedure?..

Answer / pr@$@d

Hi Raj ,

Nice answer,

We can use OUT,INOUT also in function but it is not
suggested by Oracle.

Thanks,
-Pr@$@d.
prasadreddi@ymail.com

Is This Answer Correct ?    1 Yes 0 No

what diffrence between function and procedure?..

Answer / 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

More Oracle General Interview Questions

what is insert all statement in sql

3 Answers   CGI, TCS,


what diffrence between function and procedure?

4 Answers  


Define the SGA and: How you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA?

1 Answers  


How to select all columns of all rows from a table in oracle?

0 Answers  


How to do clean up if create database failed?

1 Answers  


What are the major difference between truncate and delete?

1 Answers  


Can a View based on another View ?

3 Answers  


What is an oracle user account?

1 Answers  


Do you know about aggregate functions? What is row num function? Can it be used all databases?

1 Answers   Bravura Solutions, Cap Gemini,


how to tune oracle sql queries pls tell me step by step. urgent pls

1 Answers  


How do I use unicode codesets with the weblogic jdriver for oracle driver?

1 Answers  


Please help me how to write a Query to change the primary key constraint from 1 attribute to another attribute in a table

3 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1803)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)