• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

read data from excel sheet and put it into the postgresql database

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I want to read the data from an excel sheet and put that data into the postgresql database. There is tables in the database similar to the excel sheet. How can I do that ? Please help me.
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ron,
In my opinion, your question has nothing to do with servlets, it has to do with JDBC.

There are JDBC drivers that allow you to read data from Excel spreadsheets.
Just do an Internet search for the terms "excel" and "JDBC".

Alternatively, you may be able to use the POI project to read the Excel data.

Once you have read the data (from Excel), you can use JDBC (again) to insert the data into your PostgreSQL database.
[Of-course, you will need to obtain the relevant JDBC driver for PostgreSQL. This is not the same driver as required for Excel.]

Good Luck,
Avi.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the JDBC forum.

Avi is correct, this isn't a Servlets question. This forum is for Servlets questions.

Thanks

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic