How to import a excel file to the h2 database?

元气小坏坏 提交于 2021-01-21 09:27:06

问题


I have an excel sheet with data stored in ten columns and a large number of rows. I would like to import the content of the file in an H2 database. what is the procedure for this? can I import the excel file as a whole or do I have to write some specific code to handle the content row by row ?


回答1:


Export your file to CSV and then use the H2 function to read CSV file.

This is described in the H2 documentation.




回答2:


Just recently I release a library that does this for you. It inspects the XLS and for every sheet will create a table as a H2 database.

it pushes a download to your browser which is the H2 database zipped up.

You can find the tool here http://ete.straight.io

Hope it helps. Cheers



来源:https://stackoverflow.com/questions/9075803/how-to-import-a-excel-file-to-the-h2-database

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!