Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phpmyadmin export selected data from SQL to excel

I have a problem where I need to just export selected data from my phpmyadmin, i'm using XAMPP.

I have a table named "Tbl_Records" and I only need to get all the data of year 2014 or just a specific year in that table.

I tried

Select * From Tbl_Records Where Year = 2014

in Phpmyadmin to get only the specific year and then exported the data but it still exported everything.

like image 968
Allan-LaLa De Joya Avatar asked Dec 10 '14 02:12

Allan-LaLa De Joya


People also ask

How do I export SQL query results to Excel in phpMyAdmin?

In PhpMyAdmin, go into the SQL tab and enter your query in there. Hit go, then click Export at the bottom of your results. You can select to export as a CSV.

How do I extract data from SQL table to Excel?

In Object Explorer, right-click the required database/table/view and click Export Data on the shortcut menu to invoke the export wizard. On its first page, Export format, select the preferred format: MS Excel (. xls) or MS Excel 2007 (. xlsx).


1 Answers

You need to use the Export link located under the data from the query and not the Export tab at the top, as shown in the picture below:

enter image description here

like image 82
Michael Avatar answered Oct 06 '22 01:10

Michael