This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes How to import CSV file into Mysql using jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "How to import CSV file into Mysql using jsp" Watch "How to import CSV file into Mysql using jsp" New topic
Author

How to import CSV file into Mysql using jsp

Suganya Rajarethinam
Greenhorn

Joined: Sep 10, 2008
Posts: 11
Hi All,
I have tried to import CSV file into Mysql databse using jsp.Then i can able store the csv values into Mysql database and i getting error.
I have two fields in my database.There are file_id,file_data .The all CSV values inserted into file_data column only.

This is my output of database

file_id file_data
"4";"9994964548";"0"




Please assist me to solve this problem.


Regards,
Suganya.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63202
    
  69

Do you really not indent your code?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to import CSV file into Mysql using jsp
 
It's not a secret anymore!