This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Export Query to Excel for ORACLE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Export Query to Excel for ORACLE" Watch "Export Query to Excel for ORACLE" New topic
Author

Export Query to Excel for ORACLE

sudha swami
Ranch Hand

Joined: Apr 24, 2007
Posts: 179
Hi,
I would like to Export the result of sql query into Excel.
regards
sudha
[ September 18, 2007: Message edited by: sudha swami ]
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3703
    
    5

A lot of GUI applications will allow you to cut and paste data into Excel but from a programmatic standpoint, its best to write a java program that converts the result set into a CSV file (just fields separated by commas) and import that into excel.

You could also try GUI tools for exporting your database directly into a CSV file.


My Blog: Down Home Country Coding with Scott Selikoff
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
See if the POI Library does what you need. I've only used it to read excel but it worked easily enough.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
sudha swami
Ranch Hand

Joined: Apr 24, 2007
Posts: 179
Hi,
Thanks alot for the info. Currently i am using GUI Tool, DBVisualizer and it supports exporting the data into CSV
sudha
 
Consider Paul's rocket mass heater.
 
subject: Export Query to Excel for ORACLE
 
Similar Threads
Export to excel
Export functionality
how to export data to Excel
JasperReports -- excel issue
Upload Excel Data in oracle Database