How to export a single table from phpmyadmin to a comma delimited text file?

前端 未结 4 1410
南旧
南旧 2021-01-06 05:29

I need to export a table from phpmyadmin to a comma delimited text file. I think there is a code but can\'t seem to find it. I found one but it doesnt work.

I need t

4条回答
  •  臣服心动
    2021-01-06 06:26

    Execute this statement:

    SELECT * FROM `table_name`
     INTO OUTFILE 'directory' ->e.g /tmp/myTable.csv(Linux) or C:\myTable.csv(Windows)
     FIELDS TERMINATED BY ','
     ENCLOSED BY '"'
     LINES TERMINATED BY '\n'
    

提交回复
热议问题