What are the difference between Functions/Stored Procs and
Triggers and where are they used.

Answer Posted / barun

Function-1.function used for calculation perpose.it must
return value.(call by pl/sql code block,by sql query)

Procedure-it is used to implement business logic.it may or
not return value.it pre compile and stored in server data
base.so it is faster.(call by pl/sql code block_

trigger-it is used to implement business logic and maintain
intigrity.it cant take any para-meter like fun or
procedure.it is automatically fired(implicitely)

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the file extension for sql database?

513


Can we use ddl statements in stored procedure sql server?

508


How consistent is the view of the data between and within multiple sessions, transactions or statements ?

1702


What are the set operators in sql?

545


Determine if oracle date is on a weekend?

548






Can a table contain multiple foreign key’s?

564


What is the difference between a database and a relational database?

558


what are set operators in sql? : Sql dba

530


Explain select statements in sql?

580


Explain the types of joins in sql?

566


Which is faster subquery or join?

652


What is sharding in sql?

555


What is difference between sql and oracle?

554


How do I create a sql database?

518


Is coalesce faster than isnull?

498