Diff bet.. Function and Trigger?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is JDBC PreparedStatement?

525


What do you understand by jdbc driver and explain its types?

491


What does the jdbc databasemetadata interface?

520


What is the latest version of JDBC? What are the new features added in that?

519


What are the differences between setmaxrows(int) and setfetchsize(int)?

536






What do you mean by batch processing in jdbc?

519


Explain the importance of drivermanager.

709


What is a statement?

575


Can resultset be null in java?

506


Why we use jdbc instead of odbc?

494


What is the use of jdbc?

556


Prepared statements are faster. Why?

606


List some new features available in jdbc 4.0?

477


What is jdbc connection class?

467


What do you mean by jdbc batch processing and what are the advantages of using jdbc batch processing?

507