如何在数据库中记录 [英] how records in database

查看:73
本文介绍了如何在数据库中记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.我需要小的C#项目.当我在txtbox1中输入名称时,txtbox2必须显示她的年龄.即时通讯使用sql和c#.请帮我.感谢

解决方案

启动Visual Studio,依次单击文件",新建项目",然后开始编写类以及数据访问和存储过程.如果您有特定的问题,请回来询问,以便我们提供帮助.


我假设,

  • 您希望用户在TextBox1中输入他们的姓名
  • 基于TextBox1的名称,您将从数据库中检索年龄信息.
  • 在以下位置显示检索到的年龄信息TextBox2.

如果假设正确,那么您可能需要通读以下文章,

C#Station ADO.NET教程 [通过C#访问SQL Server的入门指南 [ ^ ]
使用参数化查询在Windows窗体中显示数据 [ ^ ]

^ ]

希望对您有所帮助:)


hi. i need small c# project. when i enter name into txtbox1, txtbox2 must dislpay her age. im using sql and c#. please help me. thanks

解决方案

Start Visual Studio, click File, New Project and then get started writing your classes and data access and stored procedures. When you have something specific, please come back and ask so we can help.


I am assuming,

  • You want user to enter their name in the TextBox1
  • Based on the name from the TextBox1, you will retrieve Age information from the Database.
  • Show the retrieved Age information on the TextBox2.

If the assumption is right, you might need to read through the following articles,

The C# Station ADO.NET Tutorial[^]
Beginners guide to accessing SQL Server through C#[^]
Displaying Data in a Windows Form Using a Parameterized Query[^]
and
More Information[^]

Hope it helps :)


这篇关于如何在数据库中记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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