adspace


What is the difference between execution of triggers and stored procedures?

Answer Posted / Shobhit Rastogi

Stored Procedures are user-defined program units, which can contain SQL statements, PL/SQL blocks or other procedural code. They can be called explicitly by the application when needed. On the other hand, Triggers are automatically executed by the database server in response to specific events such as INSERT, UPDATE or DELETE on a table or view. Stored Procedures run at a user's request, while Triggers run in response to database actions.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2102


what are the advantages of sql ? : Sql dba

1154


how many tables will create when we create table, what are they? : Sql dba

1156


how to escape special characters in sql statements? : Sql dba

1124


What is the current version of postgresql?

1188


what is bcp? When does it used? : Sql dba

1065


what is schema? : Sql dba

1163


Is primary key always clustered index?

1101


how to use regular expression in pattern match conditions? : Sql dba

1125


define sql insert statement ? : Sql dba

1110


Is inner join faster than left join?

1287


How do I remove duplicates in two columns?

1202


What is the best sql course?

1064


how to start mysql server? : Sql dba

1279


What is your daily office routine?

2353