|
-
Jan 30th, 2008, 04:57 AM
#1
Thread Starter
Lively Member
Export Mysql to Excel Worksheet
Hy there!
I have a problem. Inside one of my application I'm trying to do some exports. Exporting data from Access Database to excel worksheet works really fine but exporting from Mysql database to Excel doesn't work at all.
the SQL statement looks like this:
"SELECT * INTO [Excel 8.0; DATABASE=" + ExcelFile + "].[" + WorkSheetName + "]"+ FROM MysqlTable"
the statement for the Access Database is the same...
-
Jan 30th, 2008, 07:57 AM
#2
Re: Export Mysql to Excel Worksheet
What errors are you getting?
-
Jan 30th, 2008, 08:08 AM
#3
Thread Starter
Lively Member
Re: Export Mysql to Excel Worksheet
the error sounds like this:
You have an error in your SQL syntax; check the manual corresponding to your MySQL server version for the right syntax to use near '[Excel 8.0;DATABASE=C:\1.xls][tab] from' at line 1.
-
Jan 30th, 2008, 11:16 AM
#4
Re: Export Mysql to Excel Worksheet
Have you looked at the MySQL manual?
-
Jan 30th, 2008, 12:22 PM
#5
Re: Export Mysql to Excel Worksheet
That syntax is not standard SQL, it is purely for the Jet driver (which deals with Access/Excel/...), so you will need to find MySQL's equivalent.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|