Is there any way to import data from xls files to database(postgreSQL in my case) using java?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Another option (if on Windows) would be to create an ODBC link to the excel file, and then use JDBC-ODBC to query the spreadsheet using SQL.
This method is only useful if the spreadsheet file and structure are not going to change much.
Personally, I’d use Apache POI as mentioned by other posters, but this method has a smaller learning curve if you’re looking for a quick solution.