adspace


What is the difference between database trigger and stored procedure?

Answer Posted / Muneesh Kumar

A stored procedure is a prepared SQL code that you can save, execute, and reuse within your Oracle Database. It encapsulates logic to perform a specific task. On the other hand, a trigger is a special type of stored procedure that automatically executes in response to certain events (such as insert, update, or delete) on a particular table. In summary, stored procedures are user-defined functions called explicitly, while triggers are automatically executed by the database.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is dbms? : Sql dba

1061


what is schema? : Sql dba

1147


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

1114


what are the advantages of sql ? : Sql dba

1142


Can we use distinct and group by together?

1133


what is sql server agent? : Sql dba

1182


What is the current version of postgresql?

1178


Do we need to rebuild index after truncate?

1138


If a cursor is open, how can we find in a pl/sql block?

1238


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

2091


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

1144


Is primary key always clustered index?

1095


What is your daily office routine?

2346


what is collation? : Sql dba

1229


what are aggregate and scalar functions? : Sql dba

1129