验证两个表中的主键 [英] validating primary keys in two tables

查看:94
本文介绍了验证两个表中的主键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个都有主键的表.用户将使用用户名和密码以及第一个表中的数据登录.然后将验证主键以获取第二个表的其他完整详细信息.

有人可以分享我对此的想法吗?

谢谢:)

I have two tables with both primary key on it. The user will login with username and password with the data from the 1st table. Primary key will then validated to get the other full details 2nd table.

can somebody share me his thoughts about this?

thanks :)

推荐答案

我正在弄清楚场景:

用户将使用用户名和密码登录.使用有效凭据进行身份验证后,它将被重定向到成员页面.用户在第一个表上列出,详细信息在第二个表上.用户将显示在成员页面上,其中包含从第二张表中获取的详细信息.对我来说,将用户登录名与其他详细信息分开进行更新听起来很不错.

希望它对您的回答有所帮助.谢谢. :)
I am making clear the scenario:

A user will login using username and password. After authentication with valid credentials it will be redirected to member''s page. A user is listed on 1st table and the details is on the 2nd table. A user will be display on the member''s page with details getting from the 2nd table. It sounds good to me to separate a user login with the other details for updating.

Hope it helps your answer. Thanks. :)


这篇关于验证两个表中的主键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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