您的位置:首页 > 其它

如果需要对DataTable进行大批量Select查询,首先为表创建DataView

2005-01-18 11:29 441 查看
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconviewingdataindatatable.asp

Tip   [/b]If you will be performing a number of calls to the Select method of a DataTable, you can increase performance by first creating a DataView for the DataTable. Creating the DataView will index the rows of the table. The Select method will then use that index, significantly reducing the time to generate the query result. For information about creating a DataView for a DataTable, see Creating and Using DataViews.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐