![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jsp
chfangfang
JAVA后台开发
展开
-
jsp实现Excel文件导入到MySQL数据库中
此步骤需要借助jspsmartupload.jar,poi_3.2.jar和jxl.jar包 1.在jsp界面中: <form id="file_form" action="servlet/InStaff?type=excToMqsql" enctype="multipart/form-data" method="post"> <input typ原创 2017-07-21 02:11:13 · 15772 阅读 · 35 评论 -
jsp利用pol通过servlet来实现Excel导入数据库
第一步需要的架包: 第二步,选择要导入的文件并上传到指定位置,需要用到问文件上传的包jspsmartupload.jar, html代码略; 上传文件的代码(在servlet中): public void doPost(HttpServletRequest request, HttpServletResponse response) throws Servle原创 2017-07-21 23:56:44 · 6839 阅读 · 3 评论 -
jsp操作MySQL:查找总表中所包含的子表信息
sql语句:sql语句中的in查询,是否包含select * from sub_staff where idcard in (select idcard from staff);方法其实简单,关键是写对sql语句 public static ArrayList showAll(){ Connection conn = null; PreparedStateme原创 2017-07-22 00:02:54 · 596 阅读 · 0 评论