知识库

asp读取taobao助理导出的csv文件

来源: 本站    类别: 知识库    日期: 2015/12/7

 功能:asp读取taobao助理导出的csv文件
来源:www.cnhww.com原创
作者:cnhww
原创文章,转载请注明来源www.cnhww.com,谢谢。 
<% 
Set conn = server.CreateObject("adodb.Connection")
connstr = "Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq="&Server.mappath("./")&";Extensions=csv;Persist Security Info=False"
conn.Open connstr
SET rs = server.CreateObject("ADODB.RecordSet")
rs.Open "Select * From cvs文件名.csv", Conn
if not rs.eof then
Do While Not(rs.Eof)
       response.write rs(0)&"<br>"
      rs.MoveNext
Loop
end if
rs.Close:set rs=nothing
conn.close:set conn = nothing
%>

相关文章


Copyright © 2004 - 2024 CNHWW Inc. All Rights Reserved
石家庄市征红网络科技有限公司版权所有 邮政编码:050051
服务电话:0311-85315152 13931185013 在线客服QQ:81447932 / 81447933 邮箱: cnhww@163.com