This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes help with inserting a csv file into a database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "help with inserting a csv file into a database" Watch "help with inserting a csv file into a database" New topic
Author

help with inserting a csv file into a database

jason lunt
Greenhorn

Joined: Nov 20, 2002
Posts: 7
i need to read in a csv file , which is no problem .
but i need to retrive every first word of each line and then the second word of each line and so on then i need to send that information to a sql database i have no problems with the connection to the database.
but what i need is to be able to send the first word of each line into a table and a column and then send the second word of each line into the same table or into a diffrent table, if it is the same table i want the second word of each line to go into the same row as the first word but it would be in a diffrent coulmn name
couild someone please give me some solutions please
thanks jason
[ November 21, 2002: Message edited by: jason lunt ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help with inserting a csv file into a database
 
Similar Threads
Writing the csv file to database
Don't insert duplicate values
Header issue for DailyRollingFileAppender when rolled over
A Design Question
CSV file Format info