如何使用TRIGGER进行库存维护 [英] how to use TRIGGER for stock maintanance

查看:102
本文介绍了如何使用TRIGGER进行库存维护的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张购买表.我想在currentstock表中插入数据.我有使用currentstock中的触发器进行插入更新的代码,但是在购买表上的插入和更新操作中都将数据插入了currentstock中.

i have a purchase table. i want to insert data in currentstock table . i have the code for insert update using trigger in currentstock but the data is inserted in currentstock at both insert & update operation on purchase table

推荐答案

在触发器中是否已定义它同时用于插入和更新操作吗?我对您的问题不清楚.
In your trigger have you defined it for both insert and update operations? I''m a bit unclear on your question.


这篇关于如何使用TRIGGER进行库存维护的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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