.txt文件中的查询计数 [英] Count query in .txt file
本文介绍了.txt文件中的查询计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个txt文件,其中包含224列数据和"n"号.记录
我要计算的是每一列(空白和非空白)
例如如果有10条记录,而
第1列(空白= 3,非空白= 7)
第2列(空白= 0,非空白= 10)
第3列(空白= 1,非空白= 9)
.
.
.
等等
我想从asp.net(C#)做的事情
帮助!!!!!!!!
i have got txt file which contain data of 224 columns and ''n'' no. of records
what I want is to count for each column(BLANK AND NON-BLANK)
for eg. if there are 10 records than for
column 1(BLANK=3, NON-BLANK=7)
column 2(BLANK=0, NON-BLANK=10)
column 3(BLANK=1, NON-BLANK=9)
.
.
.
and so on
this I want to do from asp.net (C#)
HELP!!!!!!!!
推荐答案
如果文本文件包含正确格式的记录,则最好将文本中的数据导入SQL-Server或使用MS -Excel从文本导入数据.之后,使用Asp.net中的表中的数据.
在SQL Server中导入文本文件数据链接 [
if the text file contains records in correct format, then better import the data from text into SQL-Server or use MS-Excel to import the data from text. After that use that data from table in Asp.net.
Importing text file data in SQL-ServerLink[^]
Importing text file data in MSExcel is much more easier. Click Open-> browse to your file(i.e text file) and then use its text import wizard to show data in Excel.
这篇关于.txt文件中的查询计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文