Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用特定的存储过程插入/更新记录,该存储过程对新记录值执行一些业务逻辑。我可以通过触发器忽略直接插入的新记录并将新记录值传递给我的存储过程以对传递的值执行适当的操作来做到这一点?
通常,一旦您在触发器中工作,您需要将所有操作作为触发器主体的一部分执行,而不是在例如存储过程中调用其他代码。
这是因为插入和删除的“逻辑表”只存在于触发器的上下文中。