CSV格式文件
2008-11-28 09:18
375 查看
CSV即Comma
Separate Values的缩写,现在常见到这种格式的文件,例如Google
adsense的自定义报表就有这种格式。
The CSV (”Comma Separated Value”) file format is often used to
exchange data between disparate applications. The file format, as
it is used in Microsoft Excel, has become a pseudo standard
throughout the industry, even among non-Microsoft platforms.
As is the case with most exchange formats since XML, CSV files
have become somewhat of a legacy format. New applications that wish
to include an export format will generally use XML today (though
there may be exceptions). In legacy systems though (pre-XML), CSV
files had indeed become a de facto industry standard. Just as there
are still billions of lines of CoBOL code in use today that need to
be maintained, support for a legacy standard such as CSV is likely
to be required long after it has stopped being implemented in new
designs.
具体来说,格式如下:
每条记录占一行
以逗号为分隔符
逗号前后的空格会被忽略
字段中包含有逗号,该字段必须用双引号括起来
字段中包含有换行符,该字段必须用双引号括起来
字段前后包含有空格,该字段必须用双引号括起来
字段中的双引号用两个双引号表示
字段中如果有双引号,该字段必须用双引号括起来
第一条记录,可以是字段名
windows平台下一般将CSV文件定义为xml后缀,用文本编辑器就可以打开。
Separate Values的缩写,现在常见到这种格式的文件,例如Google
adsense的自定义报表就有这种格式。
The CSV (”Comma Separated Value”) file format is often used to
exchange data between disparate applications. The file format, as
it is used in Microsoft Excel, has become a pseudo standard
throughout the industry, even among non-Microsoft platforms.
As is the case with most exchange formats since XML, CSV files
have become somewhat of a legacy format. New applications that wish
to include an export format will generally use XML today (though
there may be exceptions). In legacy systems though (pre-XML), CSV
files had indeed become a de facto industry standard. Just as there
are still billions of lines of CoBOL code in use today that need to
be maintained, support for a legacy standard such as CSV is likely
to be required long after it has stopped being implemented in new
designs.
具体来说,格式如下:
每条记录占一行
以逗号为分隔符
逗号前后的空格会被忽略
字段中包含有逗号,该字段必须用双引号括起来
字段中包含有换行符,该字段必须用双引号括起来
字段前后包含有空格,该字段必须用双引号括起来
字段中的双引号用两个双引号表示
字段中如果有双引号,该字段必须用双引号括起来
第一条记录,可以是字段名
windows平台下一般将CSV文件定义为xml后缀,用文本编辑器就可以打开。
相关文章推荐
- 使用kettle将csv格式文件输入,sql表输出
- 以特定列格式打开csv文件
- csv文件格式的优点
- 读取五种格式的配置文件(xml(两种方式),txt,excel,csv,json)
- R读取txt、csv、xls和xlsx格式文件
- 解析csv格式文件的一段C代码
- highcharts自定义导出文件格式(csv) highcharts的一些使用心得
- python输出excel能够识别的utf-8格式csv文件
- 导入城市文件数据(csv)格式demo
- Go 操作CSV格式文件
- 用pandas将多个同格式csv数据文件合并
- php导出csv格式的文件
- SQL : 一个存储过程,用于向指定的MS SQL Table中导入CSV 格式的文件数据
- 用csv格式的文件代替poi导出xls文件
- MT4函数_读取CSV格式文件存入到二维数组
- .csv是什么文件格式,什么软件可以打开?xls与csv文件是什么区别?功能和作用上有什么不同?
- CSV格式文件解析
- .NET中使用oledb连接sybase和csv格式文件的连接
- 写文件的工具类,输出有格式的文件(txt、json/csv)
- CSV格式表格文件自动转换科学计数法的解决方法