This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes update sql database using excel spreadsheet records Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "update sql database using excel spreadsheet records " Watch "update sql database using excel spreadsheet records " New topic
Author

update sql database using excel spreadsheet records

Legape McCarthy
Greenhorn

Joined: Jun 13, 2010
Posts: 2
i have recently recieved an updated spreadsheet for students data. is the anyhow i can update my database table using records from excel. updating them manually will take a long time as they are many records. your help will be appreciated. Thanks
Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Posts: 317
Off the top of my head, you can probably concatenate the columns into a separate column in the spreadsheet to be something like

update <tablename> set A=$A1, B=$B1...... where Z=$Z1


using excel formulas and then copy the whole column onto your SQL Editor and run it once.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: update sql database using excel spreadsheet records
 
Similar Threads
xls file
How much data can a session bean hold?
Java with Excel 2007
Copy excel file to access table
difference between two dates with excel as database