Question

I want to export a table of a database on phpMyAdmin into csv file. I tried SELECT * FROM Table_Name into outfile'D:/wamp/www/projectName/fileName.csv'; but it's very ugly. How to make it more presentable? Thank you in advance.

Was it helpful?

Solution

So you want it in Excel, in the end? In phpMyAdmin, view the table. In the tabs at the top, choose "Export". Choose whichever Excel format you want from the list at the left-hand side. Choose the options you want, hit "Go".

(If you just want CSV, this screen also gives you a friendly way of adjusting the CSV options, e.g. using a comma rather than a semicolon as the separator, which will probably go down better with Excel and other CSV importers.)

PHPMyAdmin Export Interface

OTHER TIPS

From Excel go to Data - (import) From Text, choose Delimited and select ";"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top