How do i export mysql table data to microsoft excel?
is there a way to write a query to output this data?
i am assuming the query should take the form
SELECT * FROM Tablename
OUTPUT INTO SOMEFILE.xls;
kindly help
How do i export mysql table data to microsoft excel?
is there a way to write a query to output this data?
i am assuming the query should take the form
SELECT * FROM Tablename
OUTPUT INTO SOMEFILE.xls;
kindly help
you can do it in CSV format:
SELECT *
FROM Tablename
INTO OUTFILE 'C:/tmp/result.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
Maybe you can connect to the database using Excel and the just import the data using the specified query.
You can do this on the data tab of Excel. Assuming you have excel 2007 or higher.
You can use some GUI clients like SQLyog or Navicat and export. SQLyog has free version.