Home  >  Article  >  Backend Development  >  excel表数据上传到数据库解决思路

excel表数据上传到数据库解决思路

WBOY
WBOYOriginal
2016-06-13 11:54:33913browse

excel表数据上传到数据库
请大家帮我分析一下。
excel表中数据上传到数据库,一万到两万条数据,在一台服务器上能上传成功,但是在另一台服务器上就上传不完整(数据量变少)了,代码是完全一样的,苦恼了半天了。。。
------解决方案--------------------
估计是内存不足的原因
------解决方案--------------------
写个SQL文导吧。也不用很久
------解决方案--------------------
如果能改成csv文件,可以用sql导入到mysql。
如果必须用php来实现,加大内存试试,或者把excel分成几个小文件,再分批上传。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn