7

I have a sql database in which i want to export some tables in CSV format. Users and purchases.

By using phpmyadmin, > Export function i've successfully exported all data in table but there are no headers (column title) in the excel sheet and its very confusing to determine data retrieved from that table.

its look like this:

enter image description here

And i need it like this: enter image description here

Any suggestion how to do this?

5
  • What happened when you Googled "phpmyadmin export csv with headers"? Please do that before asking here. Commented May 28, 2014 at 21:04
  • 3
    I did not find any post over the internet for phpmyadmin, I found some posts for sql server 2008 Commented May 28, 2014 at 21:05
  • 1
    There's a format specific option for column names in the first row. Commented May 28, 2014 at 21:07
  • Yes! same no headers after checking "put name of columns in first row I've done all these methods then i decided to ask here to some experts Commented May 28, 2014 at 21:11
  • The Google search mentioned now redirects here. Commented Jan 10, 2018 at 1:07

2 Answers 2

17

This works for me. What version of phpmyadmin do you have?

  1. Under Browse, click on the table you want to export.
  2. At the bottom, in the Query results operations section, click on Export.
  3. In Export method, choose Custom.
  4. Change Format to CSV for MS Excel.
  5. Under Format-specific options, check Put columns names in the first row.
Sign up to request clarification or add additional context in comments.

Comments

1
  1. Click on the export button
  2. Export method custom
  3. Format CSV
  4. Format-specific options: Put columns names in the first row ( Select this checkbox)

enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.