Differentiate between function and procedure in oracle.



Differentiate between function and procedure in oracle...

Answer / Mitesh Shandilaya

In Oracle, both functions and procedures are used to encapsulate code and are stored in the database. The main difference lies in their return values and usage: n 1. Function - returns a value after executing the code block. It can be used as an expression or part of another statement. n 2. Procedure - does not return any value, but performs actions based on its code block.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

What are nested tables?

1 Answers  


When system tablespace is created?

1 Answers  


Please explain compound trigger in oracle?

1 Answers  


How many data types are supported?

1 Answers  


what are Triggers?

7 Answers   TCS,


What is oracle data type?

1 Answers  


Is it possible to join two tables, that are in two different users (e.g. SCOTT and HR etc.),but im same database (e.g. ORCL)? If yes, then how it is possible? Explain with step by step procedure.

1 Answers   IBM,


What are the factors causing the reparsing of SQL statements in SGA?

1 Answers  


How to return top 5 rows in oracle?

1 Answers  


create one table to capture an employee details with a primary key.

1 Answers   CTS,


Is oracle the best database?

1 Answers  


Why do we need integrity constraints in a database?

1 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)