PK和FK之间的关系 [英] Relation between PK and FK

查看:1029
本文介绍了PK和FK之间的关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我正在使用Express For Web创建Web应用程序。

我有2个表1.User {Id(PK,autoincrement),用户名,电子邮件,密码} 2 .UserDetails {Userid(FK),Card_NR(PK),Email,Name}。


我的问题是,当我想在表UserDetails上保存数据时,列Userid,这是对Id(PK)的外键引用,将自动从表User中获取数据...
$


如何执行此操作以直接从ID PK获取ID FK



HELP PLEASE * _ *

解决方案

嗨朋友,


此论坛适用于Visual Studio IDE,因为您的问题是关于Web开发,我建议您将其发布在以下论坛上以获得专业答案。


https://forums.asp.net/


感谢您的理解与合作。


祝您有个美好的一天:)



最重要的是,


Fletch


Hello i'm using Express For Web to create a Web Application.
I have 2 tables 1.User {Id(PK,autoincrement) , Username, Email , Password} 2.UserDetails {Userid(FK), Card_NR(PK), Email, Name}.

My Problem is that when i want to save data on table UserDetails, the column Userid, which is the foreign key references to Id (PK), will take the data automatically from table User...

how to do this in order to take ID FK directly from ID PK

HELP PLEASE *_*

解决方案

Hi friend,

This forum is for Visual Studio IDE, as your issue is about web development, I recommend you post it on the following forum to get a professional answer.

https://forums.asp.net/

Thanks for your understandings and cooperation.

Have a good day:)

Best regard,

Fletch


这篇关于PK和FK之间的关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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