how to read data from oracle and display it in a txt file using java?

how to read data from oracle and display it in a txt file using java?


thanks for your help

regards
vihar123Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Mayank SConnect With a Mentor Associate Director - Product EngineeringCommented:
BTW, some examples here:

Getting data from a ResultSet - http://www.javaalmanac.com/egs/java.sql/GetRsData.html

Writing to a file - http://www.javaalmanac.com/egs/java.io/WriteToFile.html

Have a look at the "Related Examples" as well (for both).

JDBC tutorial - http://java.sun.com/docs/books/tutorial/jdbc/
0
 
Mayank SAssociate Director - Product EngineeringCommented:
What do you mean "display in a txt file"? Do you want to write it to a txt file or display it on the console?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.