用插入触发 [英] Trigger with insert

查看:77
本文介绍了用插入触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i创建了一个这样的触发器

hi
i created a trigger like this

展开 | 选择 | Wrap | 行号

推荐答案

为什么你需要在更新时删除并插入到同一个基表中?
Why you need to delete and insert into the same base table on update ?





为什么你需要保持相同的一组表empl1和emp1中的行/列...?


问候

Veena
Hi,

Why do you need to mantain same set-of rows/Columns in both the tables empl1 and emp1...?

Regards
Veena



为什么需要在更新时删除并插入到同一个基表中?
Why you need to delete and insert into the same base table on update ?



hi debasisdas

实际上我想要更新特定记录。我不知道哪个特定领域会更新。所以,我正在删除基于主键的整个记录​​并插回新的更新记录。


谢谢

prem

hi debasisdas
Actually i want to update a particular record. I dono which particular field will be updated. So, i am deleting the entire record based on the primary key and inserting back the new updated record.

thanks
prem


这篇关于用插入触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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