用ASP上传Excel表格并导入到数据库

用ASP上传Excel表格并导入到数据库


2024年6月20日发(作者:)

用ASP上传Excel表格并导入到数据库

<%

set upload=new upload_5xSoft

set file=("file1")

formPath="../upload1/"

if me="" then

""

else

if ze>1000 then

fileExt=lcase(right(me,3))

if fileExt<>"xls" then

"文件类型非法"

你没选择文件!

‘);(

end if

end if

randomize

ranNum=int(9000000*rnd)+10000

filename=formPath&year(now)&month(now)&day(now)&hour(now)&minute

(now)&second(now)&ranNum&"."&fileExt

if ze>0 then

h(FileName)

end if

connstr = "driver={microsoft Access driver (*.mdb)}; dbq=" &

h("../../data/#")

set conn3 = object("TION")

connstr

set rs=object("set")


发布者:admin,转转请注明出处:http://www.yc00.com/web/1718877511a2753224.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信