Diff bet.. Function and Trigger?

Answers were Sorted based on User's Feedback



Diff bet.. Function and Trigger?..

Answer / srinivas t

Triggers: are special class of stored procedures to execute
automatically when an update,insert or statement is issued
against a table or view.
Function:Function is used to return value after performing
the tasks to the callable fucntion.

Is This Answer Correct ?    14 Yes 0 No

Diff bet.. Function and Trigger?..

Answer / purushotham

PL/SQL has two types of sub programs
Function and Procedures.
A Trigger is a stored procedure which is implictly called
by the oracle engine when an DML action is performed.
Trigger consists of three parts
A trigger statement
A trigger restriction
and the triggering action

Functions are different from procedures as
functions return value whereas procedure doesnt
To carry out set of tasks a certain pl/sql statements are
grouped in a procedure.
After performing some tasks and returns the result(function)
functions are written explicitly by the user.

Is This Answer Correct ?    1 Yes 0 No

Diff bet.. Function and Trigger?..

Answer / dsr

Function returns the value.Trigger is not complusory return
the value.

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More JDBC Interview Questions

If iam using JDBC API, do I also have to use ODBC?

1 Answers  


What isolation level is used by the DBMS when inserting, updating and selecting rows from a database?

0 Answers  


What is JDBC Driver interface?

0 Answers  


Is it possible to connect to multiple databases simultaneously? Using single statement can one update or extract data from multiple databases?

0 Answers  


Describe the steps needed to execute a sql query using jdbc.

0 Answers  






What is use of connection pooling?

0 Answers  


What are temp tables ?

0 Answers  


How can you tune SQL statements?

2 Answers   Wipro,


What are the different types of resultset?

0 Answers  


What does the jdbc driver interface do?

0 Answers  


What is a JDBC 2.0 DataSource?

0 Answers  


How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?

0 Answers  


Categories