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

How do I retrieve a whole row of data at once, instead of calling an individual ResultSet.getXXX method for each column?

598


Explain about the Try Block?

562


What is jdbc and explain jdbc architecture?

520


How many categories of jdbc drivers are there?

487


What are the conditions applies to varchar variable, when using in procedures?

1618






What are the different types of JDBC drivers?

619


What is com mysql jdbc driver?

502


What is serialization and deserialization in java programming?

524


Explain about DSN?

541


What is the use of dialect?

570


How can you know about drivers and database information ?

554


How can I instantiate and load a new CachedRowSet object from a non-JDBC source?

536


What are the different types of statements? How we can you use preparedstatement.

517


What is jdbc servlet?

500


Explain different types of locks in jdbc?

517