如何使用ADO.NET语句将外键列插入数据库? [英] How to insert foreign key columns in to database using ADO.NET statements?

查看:120
本文介绍了如何使用ADO.NET语句将外键列插入数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有7个表,每个表包含主键,另一个表包含这些主键的外键。我已经建立了关系,现在我想将FK的值插入到与该列的所选项对应的一个表中。

I have 7 tables containing Primary Key each and one other table containing Foreign key of those Primary Keys. I have made up the relationships and now i want to insert values of FK into that one table corresponding to the selected item of that column.

任何人都可以帮助我吗?

Can anyone help me in this?

推荐答案

您好Naqash Ahmed,

Hi Naqash Ahmed,

因为您的问题与ADO.NET数据集更相关。我将把它移到 ADO.NET数据集论坛支持。

Since your problem is more related to ADO.NET Dataset. I will move it to ADO.NET Dataset Forum for support.

Visual C#论坛讨论并询问有关C#编程语言,IDE,库,示例和工具的问题。

The Visual C# forum discuss and ask questions about the C# programming language, IDE, libraries, samples, and tools.

如果你有一些语法或代码错误,请随时与我们联系。我们将尽力为您提供解决方案。

If you have some grammar or code errors, please feel free to contact us. We will try our best to give you a solution.

感谢您的理解与合作。

最诚挚的问候,

Wemdy


这篇关于如何使用ADO.NET语句将外键列插入数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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