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

How do I view a procedure in sql?

549


What is the difference between rename and alias?

710


What is meant by <> in sql?

509


Why stored procedure is better than query?

511


Differentiate between sga and pga.

673






Can a key be both primary and foreign?

510


what is a trigger? : Sql dba

577


Why we use join in sql?

532


What is schema in sql example?

598


Is not equal in sql?

570


How can you load microsoft excel data into oracle? : aql loader

615


Are sql connections encrypted?

559


What is the source code of a program?

509


What is the full form of sql?

534


Can we write ddl statements in functions?

569