繁体   English   中英

如何使用 ZD52387880E1EA22817A172D375921 中的 ODBC 将 Excel 文件导入 MySQL?

[英]How to import an Excel file into MySQL using ODBC in Java?

我想使用 ODBC 驱动程序将 Excel 文件导入 MySQL 数据库。 Java 是否支持这种技术? 如果是,请指导我如何实施。

You can read an Excel file in Java using the Apache POI library: http://poi.apache.org/ There are some code samples on their howto page which will tell you how to read an Excel file: http://poi. apache.org/spreadsheet/how-to.html

要存储数据,最好使用 MySQL 的 JDBC 驱动程序而不是 ODBC,因为 ZF8977030C5A8C93178FEDBA6 库上的原生库。 您可以在此处获取连接器: http://www.mysql.com/products/connector/

If you absolutely must use ODBC, then you can see how to do that here: http://download.oracle.com/javase/1.5.0/docs/guide/jdbc/bridge.html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM