我们可以在商店程序中调用Trigger吗? [英] Can we call a Trigger in store procedure?

查看:66
本文介绍了我们可以在商店程序中调用Trigger吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以在商店程序中调用Trigger吗?或者我们可以在Trigger中调用存储过程吗?

Can we call a Trigger in store procedure? or Can we call a store procedure in Trigger?

推荐答案

您好,



让我更正.. 。



您的第一个查询是我们可以在存储过程中调用触发器吗?



答案: - 我们不能,因为触发器已写在表格上,并且某些事件如插入/更新/删除称为触发事件。



您的下一个查询是我们可以在Trigger中调用存储过程?



答: - 这是不可取的。详情请查看...





如何在内部执行存储过程而不是触发器





希望这会对你有所帮助。





干杯
Hi,

Let me correct ...

Your first query is "Can we call a Trigger in Stored Proc?"

Ans :- We can not, as Triggers have been written on Tables and for some events like Insert / Update / delete known as triggering events.

Your next query is "Can we call a stored proc in Trigger?"

Ans :- It is not advisable. For details you can check this...


how to execute stored procedure inside instead of trigger


Hope this will help you.


Cheers


这篇关于我们可以在商店程序中调用Trigger吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆