phpmyadmin exporting to csv for excel

后端 未结 2 1745
青春惊慌失措
青春惊慌失措 2021-01-17 13:52

I\'m having problem using xampp (4.1.6) phpmyadmin export function. When I export, I select csv for excel format, but it will return the data like:

1;\"data1         


        
相关标签:
2条回答
  • 2021-01-17 14:14

    Just check the Put columns names in the first row checkbox above the Go button.

    0 讨论(0)
  • 2021-01-17 14:26

    You almost got it right, you just have to check the "Put colums names in first row" checkbox and then start the export. That should do the job.

    EDIT::

    Since your doin it your self you can get the fieldnames with this MYSQL query:

        SELECT `COLUMN_NAME` 
    FROM `INFORMATION_SCHEMA`.`COLUMNS` 
    WHERE `TABLE_SCHEMA`='yourdatabasename' 
        AND `TABLE_NAME`='yourtablename';
    
    0 讨论(0)
提交回复
热议问题