SQL Differences between stored procedure and triggers

前端 未结 13 1350
北荒
北荒 2021-01-30 20:38

I\'m having trouble understanding the difference between a stored procedure and a trigger in sql. If someone could be kind enough to explain it to me that would be great.

<
13条回答
  •  旧巷少年郎
    2021-01-30 21:28

    A trigger fires after an insert, update, or delete. A stored procedure is a server-side program that is run when you invoke it.

提交回复
热议问题