what is the difference between trigger and storedprocedures

Answer Posted / nancy

BASIC DIFFERENCE IS trigger is automatically executed without an action required by a user where as stored procedure needs to be explicitly invoked...

a database TRIGGER ia a STORED PROCEDURE that is fired when an insert,update or deletestatements is issued against the associate table.a trigger is fired whwn database related event occurs....

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are literals in sql server?

532


What are sql functions? Describe the different types of sql functions?

556


How does sql store data?

485


What is pl sql script?

560


What is before and after trigger?

518






What is difference between table and view?

524


Do prepared statements prevent sql injection?

528


What is the max nvarchar size?

517


Is it possible to pass parameters to triggers?

575


Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?

556


First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.

1141


What is data profiling in sql?

513


What is user in sql?

579


What is embedded sql in db2?

507


How to take user input in pl sql?

705