DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Posts
    11

    Using SQL to Export MySQL Result Sets to Excel

    Hi

    I am building a website that needs to provide the users an option to download result sets to an excel sheet. I therefore need an SQL statement that will enable me to export the result set to an Excel sheet. (Using the 'export to excel' in the MySQL query browser will not work for my case)

    Does anyone know of any SQL statements that will enable me to export datasets to excel sheets?

  2. #2
    Join Date
    Dec 2003
    Posts
    2,750
    What development platform are you using?
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

  3. #3
    Join Date
    Jun 2005
    Posts
    11
    I am using eclipse

  4. #4
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    I don't know of any SQL statements that will export an Excel file, but there are numerous examples of how to do so using ASP, ASP.NET, PHP, etc. I suspect that you'll have to implement code on your Web server to convert the data returned from your database into CSV or some other format Excel understands, and set the appropriate response header to tell the user's browser that it's an Excel file.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 1
    Last Post: 04-08-2003, 09:55 AM
  2. Replies: 0
    Last Post: 05-22-2002, 06:00 PM
  3. Replies: 0
    Last Post: 05-22-2002, 10:06 AM
  4. Replies: 1
    Last Post: 03-29-2001, 12:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links