This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing Database output to a file

 
Frank Black
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a a few database tables and I need a method that writes all of the data to a text file(preferably in the appropriate columns and rows)Can someone suggest where to start or where I could get some sample code?

Any help much appreciated.
 
Joe Ess
Bartender
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the place to start with databases is the Java Tutorial on JDBC. The other half of your puzzle is writing out the data, which is covered in the Reading and Writing part of the Java Tutorial.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic