PK和FK之间的关系 [英] Relation between PK and 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开发,我建议您将其发布在以下论坛上以获得专业答案。
感谢您的理解与合作。
祝您有个美好的一天:)
最重要的是,
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 PKHELP 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.
Thanks for your understandings and cooperation.
Have a good day:)
Best regard,
Fletch
这篇关于PK和FK之间的关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!