且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将sql查询结果存储到会话变量中

更新时间:2023-11-07 16:23:40

如果您不知道如何做一些基本的事情,那么从谷歌开始。在这种情况下,它在这里非常快速地引导: http://msdn.microsoft.com/en-us/library /ms178581.aspx [ ^ ]解释整个过程。
If you don't know how to do something basic, then start with google. In this case it leads very quickly here: http://msdn.microsoft.com/en-us/library/ms178581.aspx[^] which explains the whole process.


ADO.NET 对象的帮助下执行此查询。

在这些对象的帮助下将结果绑定到任何变量或 DataTable ,然后存储在 Session 中或直接将这些值存储在 Session中



您可以轻松获得有关如何处理 ADO.NET 对象的示例,执行查询并获取值。
Execute this query with the help of ADO.NET objects.
With the help of these objects bind results to any variable or DataTable, then store in Session or directly store those values in Session.

You can easily get examples on how to deal with ADO.NET objects, execute queries and fetch the values.