• Post Reply Bookmark Topic Watch Topic
  • New Topic

Read the Records From Database and write the records into file

 
D Ravi Kumar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

My problem is How to read the records into database and write the recoreds into file


Thanks
Ravi
 
Aum Tao
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read java.io.* and java.sql.* from the javadocs and
also HowToAskQuestionsOnJavaRanch
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you considered the DB's own export tool? Check the DB specific documentation for details. In for example MySQL you can use the SELECT INTO OUTFILE clause: http://dev.mysql.com/doc/refman/5.1/en/select.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!