如何使用主键和外键概念从一个表更新中更新多个表 [英] how to update in multiple tables from one table updation with the primary and foreign key concept

查看:78
本文介绍了如何使用主键和外键概念从一个表更新中更新多个表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用主键和外键概念从一个表更新中更新多个表

解决方案





您可以使用触发器。


使用游标您可以从一个表中获取记录并首先将该记录提取到游标中并使用游标上的循环可以更新多个表记录。

how to update in multiple tables from one table updation with the primary and foreign key concept

解决方案

Hi,

You can use Triggers for same.


using cursor you can take record from one table and fetch that record into cursor first and using the loop on cursor you can update multiple tables record.


这篇关于如何使用主键和外键概念从一个表更新中更新多个表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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