如何使用sql server中的trigger将数据一个表插入到另一个表中 [英] how to Insert data one table to another table using trigger in sql server

查看:53
本文介绍了如何使用sql server中的trigger将数据一个表插入到另一个表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,





我在数据库中插入数据。同时我想在另一个表中插入相同的数据。任何人都可以解释我如何编写触发器将一个表插入另一个表。



谢谢

Rameshwar。

Hello friends,


I am inserting data in DB. at same time same data I want to insert in another table. can anyone explain me how to write trigger for inserting data one table to another.

Thanks
Rameshwar.

推荐答案

谷歌是你的朋友 - 一点点研究将为你带来很多 results [ ^ ]



示例1 [ ^ ]



示例2 [ ^ ]
Google is your friend - a little research will get you lots of results[^]

Example 1[^]

Example 2[^]


这篇关于如何使用sql server中的trigger将数据一个表插入到另一个表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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