嗨,这是raju,我使用的是dotnet,请尽快解决 [英] hi this is raju and i am using dotnet and please solve it as quickly as possible
本文介绍了嗨,这是raju,我使用的是dotnet,请尽快解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用sql查询获取名称...
例如-我们有学生编号想要获取学生姓名吗?
我正在存储站点名称的ID.
并且我想以另一种形式获得唯一的站点名称.
how to get the name using sql query...
eg--we have studentid want to get the studentname?
i am storing the id of the sitename..
and i want to get the only site name in another form.
推荐答案
快速答案是:使用ADO.NET,它是.NET的一部分:
http://en.wikipedia.org/wiki/Ado.net [ http://msdn.microsoft.com/en-us/library/aa286484.aspx [ ^ ].
这是一篇很好的介绍性文章,其中通常包含我推荐的代码示例:
为初学者使用ADO.NET [
Quick answer is: use ADO.NET, which is a part of .NET:
http://en.wikipedia.org/wiki/Ado.net[^],
http://msdn.microsoft.com/en-us/library/aa286484.aspx[^].
Here is a good introductory article with code samples I usually recommend:
Using ADO.NET for beginners[^].
—SA
就像:
SELECT SiteName FROM myTable WHERE SiteId=2
您听起来像个初学者.请通过SA回答链接和材料来了解ADO.NET& SQL.
You sound as a beginner. Please go through SA answer links and material to learn about ADO.NET & SQL.
这篇关于嗨,这是raju,我使用的是dotnet,请尽快解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文