I can export the table data to a CSV file, but I cannot export this data to an excel file. Is there any request to export this data to an excel file.
I use this query to export data as a CSV file.
SELECT * INTO OUTFILE 'C:/your-directory/your-filename.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' FROM tableName
I used this for the excel file after the name of the change file, for example your-filename.xls
but adding the extension .xls, but providing data such as csv.
Khoyendra Pande
source share