Diff bet.. Function and Trigger?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / dsr
Function returns the value.Trigger is not complusory return
the value.
| Is This Answer Correct ? | 2 Yes | 6 No |
What is the role of jdbc drivermanager class?
What is JDBC Driver interface?
Why do we use jdbc statements?
What is the full form of jdbc?
What are the factors that the jdbc driver performance depends upon?
Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?
Name the new features added in jdbc 4.0.
How do you debug PL/SQL code?
Are there any ODBC drivers that do not work with the JDBC- ODBC Bridge?
How do I insert/update records with some of the columns having NULL value?
Explain how to make updates to the updatable resultsets.
How to find the column count in resultset?