访问文本文件中的表 [英] Accessing table which is in text file
本文介绍了访问文本文件中的表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果emp表在文本文件中,并且如果我想获取薪水第二高的员工的详细信息,我该如何获得?
if the emp table is in a text file,and if i want to get the details of the employees who has the second highest salary,how can i get?
推荐答案
您必须将所有薪水数据从文本文件加载到集合中.
然后,您可以简单地按薪水对收款进行排序和/或使用LINQ,您应该能够获得第二高的价值.
You have to load all the salary data from the text file into a collection.
You can then simply sort the collection on salary and / or use LINQ and you should be able to get the second highest value.
这篇关于访问文本文件中的表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文