what is difference between procedure and function,
procedure and trigger?

Answer Posted / arup ratan banerjee

Procedure and Function
----------------------
1)Function return atleast one value
Procedure may or may not return value

2)Function can be a part of expression
Procedure can't be a part of exception

Procedure and Trigger
----------------------
Procedure need to be executed explicitly
Trigger gets automatically executed when insert update or
delete is fired on a table.



commit can be done in procedure
commit cannot be done in case of triggerrs except for
autonomous transactions

Is This Answer Correct ?    47 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is write ahead logging in sql server?

560


what is heap table? : Sql dba

605


What are the uses of merge?

717


What is the usage of sql functions?

541


What is a pdo connection?

512






how to include character strings in sql statements? : Sql dba

551


what is log shipping? : Sql dba

607


Does a primary key have to be a number?

518


Is sql port 1433 encrypted?

572


how to fetch alternate records from a table? : Sql dba

591


Which software is used for pl sql programming?

519


What is your daily office routine?

1808


Explain correlated query work?

589


What are the query optimization techniques?

535


What information is needed to connect sql*plus an oracle server?

585