如何在文本框中显示数据库中的值?
您好,我有像这样的数据库
Users Table
user_id | username | branch_id(foreignkey)| Approved_id(foreignkey)
-------------------------------------------------------------------------------
1 jprescott 2 1
2 lpausch 1 3
Branch Table
Branch_id BranchName
1 abc
2 asjdv
3 ydgfs
Approvetable
ApproveId ApprovedBy
1 Anil
2 ghouse
3 raghu
现在我有 3 个文本框,当用户 1 登录时,我如何在文本框中输入这些字段,
txtusername.text=username from table 1;
txtapprovedname=approved by from table 2;
txtbranchname=branchname from table 3;
它应该检查分支 id 并转到分支表并显示分支名称,然后检查批准并转到批准表并在文本框中显示批准名称......
现在如何为此编写一条选择语句任何人都可以帮助我..............
Hi i have database like this
Users Table
user_id | username | branch_id(foreignkey)| Approved_id(foreignkey)
-------------------------------------------------------------------------------
1 jprescott 2 1
2 lpausch 1 3
Branch Table
Branch_id BranchName
1 abc
2 asjdv
3 ydgfs
Approvetable
ApproveId ApprovedBy
1 Anil
2 ghouse
3 raghu
now i have 3 textboxes,how do i these fields in the textboxes
txtusername.text=username from table 1;
txtapprovedname=approved by from table 2;
txtbranchname=branchname from table 3;
when user 1 logins it should check the branch id and go to the branch table and disply the branch name,and check the approveid and go to the approvedtable and displya the approvedname in textboxes.....
now how to write a select statement for this can any one help me plz...........
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)